Error with annotation Target,
December 20, 2007 at 11:54 PM
when i compile file with content:
@Target(ElementType.METHOD) public @interface A { boolean isInherited() default true; String showSomething() default "Show anything?"; }
the compiler throwed a error: A.java:1: cannot find symbol symbol: class Target @Target(ElementType.METHOD) ^ 1 error why ? i am using jdk 1.5.8
View All Comments
| View Tutorial