Merge pull request #19490 from victor-ferrer

* pr/19490:
  FilteringSpringBootCondition uses Class.forName instead of classLoader

Closes gh-19490
This commit is contained in:
Stephane Nicoll
2019-12-31 09:43:02 +01:00

View File

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