Without static compilation, annotation defined as bellow works as expected:

@interface SomeAnnitation {
 Class<?>[] someAttribute default []
}

However, with static compilation,

@CompileStatic
@interface SomeAnnitation {
 Class<?>[] someAttribute default []
}

I'm getting an error saying "Cannot return value of type java.util.List <E 
extends java.lang.Object> on method returning type java.lang.Class <?>[]"

I tried several things but failed. Is there a way to do this in Groovy, or 
should I just create the annotation in Java?

Tnx,
Damir Murat

Reply via email to