-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Closed
Copy link
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement
Milestone
Description
QualifierAnnotationAutowireCandidateResolver.checkQualifiers() currently checks if Java annotations are qualifier annotations, and it also checks if Java meta-annotations (for example, annotations in the java.lang.annotation package such as @Retention) are qualifier annotations.
Since such annotations can never be candidates for qualifier annotations, we should preemptively skip processing of Java annotations in QualifierAnnotationAutowireCandidateResolver.
For example, we could make use of something similar to AnnotationsScanner.hasPlainJavaAnnotationsOnly(...) to determine if processing is necessary, or we could just exclude any annotation whose package name starts with java. or javax..
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement