FilteringSpringBootCondition uses Class.forName instead of classLoader

See gh-19490
pull/19503/head
Victor Ferrer 5 years ago committed by Stephane Nicoll
parent 61ae4fbc04
commit 1d900f67e7

@ -105,7 +105,7 @@ abstract class FilteringSpringBootCondition extends SpringBootCondition
*/ */
protected static Class<?> resolve(String className, ClassLoader classLoader) throws ClassNotFoundException { protected static Class<?> resolve(String className, ClassLoader classLoader) throws ClassNotFoundException {
if (classLoader != null) { if (classLoader != null) {
return classLoader.loadClass(className); return Class.forName(className, false, classLoader);
} }
return Class.forName(className); return Class.forName(className);
} }

Loading…
Cancel
Save