You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test org.jsr107.tck.CacheManagerTest.close_cachesEmpty() closes a CacheManager and then calls getCacheNames() on the closed CacheManager. This is not allowed according to the JSR107 specification:
Once closed any attempt to use an operational method on a closed CacheManager or any of the Caches it was managing will throw an IllegalStateException. The operational methods on CacheManager are:
createCache
...
getCacheNames
As I interpret this, a compliant implementation MUST throw IllegalStateException. In that case either the test or the specification should be amended.
@test
public void close_cachesEmpty() {
[...]
cacheManager.close();
assertFalse(cacheManager.getCacheNames().iterator().hasNext());
// ^^^^^^^ getCacheNames() after close() ^^^^^^^^
}
The text was updated successfully, but these errors were encountered:
Thanks for the quick reply. My search didn't yield that, as I only searched in jsr107spec and not jsr107tck. :-)
If there is a pull request already, I will not create another from trivago/jsr107tck@cb34de9
The test org.jsr107.tck.CacheManagerTest.close_cachesEmpty() closes a CacheManager and then calls getCacheNames() on the closed CacheManager. This is not allowed according to the JSR107 specification:
As I interpret this, a compliant implementation MUST throw IllegalStateException. In that case either the test or the specification should be amended.
The text was updated successfully, but these errors were encountered: