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 {
if (classLoader != null) {
return classLoader.loadClass(className);
return Class.forName(className, false, classLoader);
}
return Class.forName(className);
}

Loading…
Cancel
Save