HHH-9337 Region.destroy() attempts to remove a cache listener, but region class is not annotated with @Listener
This commit is contained in:
parent
57ac3f0b2e
commit
2f881c38b4
|
@ -145,13 +145,8 @@ public abstract class BaseRegion implements Region {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void destroy() throws CacheException {
|
public void destroy() throws CacheException {
|
||||||
try {
|
|
||||||
cache.stop();
|
cache.stop();
|
||||||
}
|
}
|
||||||
finally {
|
|
||||||
cache.removeListener( this );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean contains(Object key) {
|
public boolean contains(Object key) {
|
||||||
|
|
Loading…
Reference in New Issue