I am working on an active annotation processor which is somewhat similar to @Data.
I have this strange case, where I get the error message in the title.
If I just create an interface like this (CollectionProperty is an annotation type, and CollectionPropertyType is an enum type):
interface EnumAnnotationTest {
@CollectionProperty(type=CollectionPropertyType::list, fixedSize=10)
String[] TEST = newArrayOfSize(0)
}
then everything is fine. But if I define this in an interface, that is processed by my annotation processor:
@CollectionProperty(type=CollectionPropertyType::list, fixedSize=10)
String[] arrayProp
then I get the message in the title. The strange part is, that while Eclipse and Maven say there is an error there, but not in the first case, after the active annotation processor ran, the generated Java code is as it should be, and no error in the Java code is reported.