mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Prior to this commit, AnnotationBeanNameGenerator failed when searching for a convention-based bean name, if an annotation referenced a non-existent class. To address that, this commit introduces a try-catch block around each invocation of MergedAnnotation.asAnnotationAttributes() and skips processing of the current MergedAnnotation if an exception occurs, which is likely due to a type referenced from an annotation attribute not being present in the classpath. See gh-31203 Closes gh-36524