HHH-7272 - Have ClassLoaderServiceImpl use Class.forName rather than ClassLoader.loadClass
This commit is contained in:
parent
98306dd4c1
commit
279f545740
|
@ -135,7 +135,7 @@ public class ClassLoaderServiceImpl implements ClassLoaderService {
|
|||
@SuppressWarnings( {"unchecked"})
|
||||
public <T> Class<T> classForName(String className) {
|
||||
try {
|
||||
return (Class<T>) classClassLoader.loadClass( className );
|
||||
return (Class<T>) Class.forName( className, true, classClassLoader );
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw new ClassLoadingException( "Unable to load class [" + className + "]", e );
|
||||
|
|
Loading…
Reference in New Issue