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"})
|
@SuppressWarnings( {"unchecked"})
|
||||||
public <T> Class<T> classForName(String className) {
|
public <T> Class<T> classForName(String className) {
|
||||||
try {
|
try {
|
||||||
return (Class<T>) classClassLoader.loadClass( className );
|
return (Class<T>) Class.forName( className, true, classClassLoader );
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
throw new ClassLoadingException( "Unable to load class [" + className + "]", e );
|
throw new ClassLoadingException( "Unable to load class [" + className + "]", e );
|
||||||
|
|
Loading…
Reference in New Issue