mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
HHH-9497 Remove call to Ehcache ClassLoaderUtil.getStandardClassLoader()
It has been removed in Ehcache 2.8.3+.
This commit is contained in:
parent
bea160a7ad
commit
ec849edfad
@ -29,7 +29,6 @@
|
||||
|
||||
import net.sf.ehcache.CacheManager;
|
||||
import net.sf.ehcache.Ehcache;
|
||||
import net.sf.ehcache.util.ClassLoaderUtil;
|
||||
|
||||
import org.hibernate.boot.registry.classloading.spi.ClassLoaderService;
|
||||
import org.hibernate.cache.CacheException;
|
||||
@ -199,7 +198,7 @@ protected URL loadResource(String configurationResourceName) {
|
||||
url = classLoaderService.locateResource( configurationResourceName );
|
||||
}
|
||||
if ( url == null ) {
|
||||
final ClassLoader standardClassloader = ClassLoaderUtil.getStandardClassLoader();
|
||||
final ClassLoader standardClassloader = Thread.currentThread().getContextClassLoader();
|
||||
if ( standardClassloader != null ) {
|
||||
url = standardClassloader.getResource( configurationResourceName );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user