Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

HHH-7272 - Have ClassLoaderServiceImpl use Class.forName rather than …

…ClassLoader.loadClass
  • Loading branch information...
commit 279f5457409d0520d67f3f38056ef146c98ba13e 1 parent 98306dd
Steve Ebersole authored April 24, 2012
2  hibernate-core/src/main/java/org/hibernate/service/classloading/internal/ClassLoaderServiceImpl.java
@@ -135,7 +135,7 @@ private static ClassLoader locateTCCL() {
135 135
 	@SuppressWarnings( {"unchecked"})
136 136
 	public <T> Class<T> classForName(String className) {
137 137
 		try {
138  
-			return (Class<T>) classClassLoader.loadClass( className );
  138
+			return (Class<T>) Class.forName( className, true, classClassLoader );
139 139
 		}
140 140
 		catch (Exception e) {
141 141
 			throw new ClassLoadingException( "Unable to load class [" + className + "]", e );

0 notes on commit 279f545

Please sign in to comment.
Something went wrong with that request. Please try again.