mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Use simple type name for meta-annotation in log message
In contrast to the previous commit, a warning similar to the following is now logged in such cases. WARN o.s.c.a.MergedAnnotation - Failed to introspect meta-annotation @MyAnnotation on class example.Config: java.lang.TypeNotPresentException: Type example.OptionalDependency not present See gh-35927
This commit is contained in:
@@ -113,7 +113,7 @@ final class AttributeMethods {
|
||||
// TypeNotPresentException etc. -> annotation type not actually loadable.
|
||||
if (failureLogger.isEnabled()) {
|
||||
failureLogger.log("Failed to introspect meta-annotation @" +
|
||||
getName(annotation.annotationType()), source, ex);
|
||||
annotation.annotationType().getSimpleName(), source, ex);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user