FilteringSpringBootCondition uses Class.forName instead of classLoader
See gh-19490
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user