I have Groovy-Eclipse for Juno but my Groovy classes are not able to recognize any Annotations. I am getting Groovy:class Translation is not an annotation in @Translation.Or Groovy:class Override is not an annotation in @Override For example:
import somewhere.Translation
@Translation(translationContext = TranslationContext.SOMETHING)
class SOMECLASS extends SOMETHING {
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface Translation {
Here all the annotations @Target,@Retention and @interface are compiling fine for Translation
I have all the jars included in my project lib. What am I missing here?
Looks like you have your project/workspace configured for Java 1.4 or earlier. Annotations are not being recognized since the source level doesn’t allow them.
Go to Project -> Properties -> Java Compiler. Enable project settings and set the compliance level to 1.5 or later.