HHH-7272 - Have ClassLoaderServiceImpl use Class.forName rather than ClassLoader.loadClass

This commit is contained in:
Steve Ebersole 2012-04-24 12:23:34 -05:00
parent 98306dd4c1
commit 279f545740
1 changed files with 1 additions and 1 deletions

View File

@ -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 );