When use this scene:
@Target(ElementType.ANNOTATION_TYPE)
public @interface MyParameterAnn {
int p1();
int p2() default 0;
}
@Target(ElementType.METHOD)
@Inherited
public @interface MyAnn {
int p1();
MyParameterAnn pa() default @MyParameterAnn(p1 = 0);
}
I have this error:
Syntax error on token "@", delete this token
...
p1 cannot be resolved
...
Syntax error on token ",", delete this token
recursivally from each parameter of MyParameterAnn.
I need set @Annotation(p=x) as parameter value
Original issue reported on code.google.com by josiva...@gmail.com on 29 Mar 2010 at 12:57
Original issue reported on code.google.com by
josiva...@gmail.com
on 29 Mar 2010 at 12:57