Skip to content

Consistent non-exposure of inherited annotations in AnnotationMetadata #22766

Closed
@jhoeller

Description

@jhoeller

Historically, StandardAnnotationMetadata operates against Class.getAnnotations(), potentially seeing inherited annotations as well. This is inconsistent within the AnnotationMetadata 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.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions