mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-09 04:34:49 +00:00
HHH-13209 Avoid leaking invalid data in side cache of SessionFactoryServiceRegistryImpl
This commit is contained in:
parent
ed0cec0ddb
commit
5fe874f7cf
@ -7,6 +7,7 @@
|
|||||||
package org.hibernate.service.internal;
|
package org.hibernate.service.internal;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.ListIterator;
|
||||||
|
|
||||||
import org.hibernate.boot.spi.SessionFactoryOptions;
|
import org.hibernate.boot.spi.SessionFactoryOptions;
|
||||||
import org.hibernate.engine.config.spi.ConfigurationService;
|
import org.hibernate.engine.config.spi.ConfigurationService;
|
||||||
@ -97,4 +98,10 @@ public <R extends Service> R getService(Class<R> serviceRole) {
|
|||||||
return super.getService( serviceRole );
|
return super.getService( serviceRole );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public synchronized void destroy() {
|
||||||
|
super.destroy();
|
||||||
|
this.cachedEventListenerRegistry = null;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user