I have the following annotation;
@Repeatable(Infos.class)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.Type, ElementType.Constructor})
public @interface Info {
String[] value() default {};
}
and as you see, it is repeatable, and using the wrapper class Infos
which is;
@Retention(RetentionPolicy.RUNTIME)
public @interface Infos {
Info[] value();
}
but I am getting the following compiler error on Info
class;
target of container annotation is not a subset of target of this annotation
What is the reason and solution to this error?