Consistent non-exposure of inherited annotations in AnnotationMetadata #22766
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Historically,
StandardAnnotationMetadata
operates againstClass.getAnnotations()
, potentially seeing inherited annotations as well. This is inconsistent within theAnnotationMetadata
abstraction since its ASM implementation operates against locally declared annotations only.Let's make this consistent in 5.2 since inherited annotations aren't relevant for our component and configuration class introspection purposes, and in particular should be consistently ignored across
Class
-declared and component-scanned beans.The text was updated successfully, but these errors were encountered: