Skip to content

Consistently support @Autowired as a meta-annotation #36315

@sbrannen

Description

@sbrannen

Overview

The findAutowiredAnnotation() method in AutowiredAnnotationBeanPostProcessor fully supports finding @Autowired as a meta-annotation; however, the isRequired() method in QualifierAnnotationAutowireCandidateResolver only finds @Autowired as a "directly present" annotation without any support for meta-annotations.

For consistency, and to avoid bugs, we should always support @Autowired as a meta-annotation.

Related Issues

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