mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-18 00:55:16 +00:00
HHH-9337 Region.destroy() attempts to remove a cache listener, but region class is not annotated with @Listener
(cherry picked from commit 2f881c38b439eec6378e55b1c73e81bf10968010)
This commit is contained in:
parent
cf728ede66
commit
b8923b1e39
@ -145,12 +145,7 @@ public Map toMap() {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void destroy() throws CacheException {
|
public void destroy() throws CacheException {
|
||||||
try {
|
cache.stop();
|
||||||
cache.stop();
|
|
||||||
}
|
|
||||||
finally {
|
|
||||||
cache.removeListener( this );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user