mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
7cedffc707
Spring Framework 5.2 introduced a regression in reflection-based AnnotationMetadata. Specifically, as of 5.2, StandardAnnotationMetadata no longer found @Inherited annotations from superclasses. This commit fixes this regression by switching to the INHERITED_ANNOTATIONS SearchStrategy when creating the MergedAnnotations used within StandardAnnotationMetadata, Note, however, that the discrepancy between StandardAnnotationMetadata and SimpleAnnotationMetadata (i.e., reflection-based vs. ASM-based) regarding @Inherited support still remains as it was prior to Spring Framework 5.2. Closes gh-24077