Meta-@Conditional lookup does not work consistently with ASM [SPR-14257] #18829
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Andy Wilkinson opened SPR-14257 and commented
When
ConditionEvaluator
looks forConditional
annotations, it doesn't find them when they are a meta-meta-annotation. The problem appears to be due toConditionEvaluator
's use ofAnnotationTypeMetadata.getAllAnnotationAttributes
which doesn't return all of the values for all of theConditional
annotations that are present. The attached class should hopefully illustrate the behaviour that we're seeing. When run it should output:My expectation is that all three configuration classes should produce the output that
ExplicitAnnotationConfiguration
produces.Affects: 4.2.6
Attachments:
Issue Links:
Referenced from: commits 24f5f36, 7de2976
Backported to: 4.2.7
The text was updated successfully, but these errors were encountered: