custom annotations in eclipse are not working



Hi,

I use custom annotation, but eclipse WTP 3.0M4 says "cannot be
resolved to a type". But the strange thing, is that it only occurs on
annotation, which has variables. (FYI: I can still build it with
maven, so it's not a programming error)

For example I have this annotation:
@XmlNode(tagName = "test")
public final class test { ... }

The corresponding annotation-interface is:
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface XmlNode {
String namespaceUri() default "http://www.test.com/test";;
String namespacePrefix() default "test";
String tagName();

}

I enabled Annotation Processing in Project Properties. Why throws
eclipse the error "cannot be resolved to a type" and how can I fix it?

Thanks in advance,
Franz
.



Relevant Pages

  • custom annotations in eclipse are not working
    ... I use custom annotation, but eclipse WTP 3.0M4 says "cannot be ... so it's not a programming error) ... String namespaceUri() default "http://www.test.com/test";; ...
    (comp.lang.java.programmer)
  • Re: annotation processing in eclipse
    ... I have custom annotation, but eclipse says ... But the strange is that it only occurs ... String namespaceUri() default "http://www.test.com/test";; ...
    (comp.lang.java.programmer)