custom annotations in eclipse are not working
- From: Franz <f.mayer@xxxxxx>
- Date: Tue, 15 Jan 2008 00:53:47 -0800 (PST)
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
.
- Prev by Date: eclipse europa problem on startup
- Next by Date: CFP: 8th International Conference on Hybrid Intelligent Systems (HIS 2008)
- Previous by thread: eclipse europa problem on startup
- Next by thread: CFP: 8th International Conference on Hybrid Intelligent Systems (HIS 2008)
- Index(es):
Relevant Pages
|