Favor more locally declared composed annotations over inherited annotations [SPR-11598] #16221
Closed
1 of 3 tasks
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Sam Brannen opened SPR-11598 and commented
Background
This issue picks up where #16100 left off.
Status Quo
The implementations of
AnnotatedElementUtils
and (potentially) Spring's ASM-based annotation processing currently favor inherited annotations and inherited composed annotations over composed annotations that are declared closer to the starting class passed togetAnnotationAttributes()
,getAllAnnotationAttributes()
,isAnnotated()
, etc.See the examples and related discussion in #16100 for details.
Deliverables
@Profile
and@Conditional
AnnotatedElementUtils
for Favor more locally declared composed annotations over inherited annotations in AnnotationUtils [SPR-11475] #16100 (i.e., set thesearchClassHierarchy
totrue
for all invocations of the internalprocess()
method).Affects: 4.0 GA
Issue Links:
@TestExecutionListeners
is not fully supported as a meta-annotation ("is duplicated by")@Conditional
on superclass is ignoredThe text was updated successfully, but these errors were encountered: