Refine LogAdapter#isPresent
Align LogAdapter#isPresent with ClassUtils#isPresent in order to catch NoClassDefFoundError and other errors. Closes gh-29506
This commit is contained in:
@@ -100,7 +100,8 @@ final class LogAdapter {
|
||||
Class.forName(className, false, LogAdapter.class.getClassLoader());
|
||||
return true;
|
||||
}
|
||||
catch (ClassNotFoundException ex) {
|
||||
catch (Throwable ex) {
|
||||
// Typically ClassNotFoundException or NoClassDefFoundError...
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user