mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
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