HHH-9337 Region.destroy() attempts to remove a cache listener, but region class is not annotated with @Listener
(cherry picked from commit a1ba63cbc6
)
This commit is contained in:
parent
a98ebc4ed4
commit
4506987c24
|
@ -145,12 +145,7 @@ public abstract class BaseRegion implements Region {
|
|||
|
||||
@Override
|
||||
public void destroy() throws CacheException {
|
||||
try {
|
||||
cache.stop();
|
||||
}
|
||||
finally {
|
||||
cache.removeListener( this );
|
||||
}
|
||||
cache.stop();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue