Closed
Description
Liam Bryan opened SPR-15723 and commented
Meta annotations are not detected when present on Repeatable
annotations.
Provided zip contains a quick example highlighting this, but for a contained example here (@Retention
and @Target
annotations omitted):
@Repeatable(A.List.class)
@interface A {
int value() default 1;
@interface List {
A[] value();
}
}
@Repeatable(B.List.class)
@A
@interface B {
@AliasFor(annotation = A.class, attribute = "value")
int value();
@interface List {
B[] value();
}
}
None of the provided methods in AnnotationUtils
or AnnotatedElementUtils
can locate the meta-@A
annotations for an element with repeated @B
annotations.
Affects: 4.3.8
Attachments:
- example.zip (10.87 kB)