Annotation with Annotation parameter
GoogleCodeExporter opened this issue · 1 comments
GoogleCodeExporter commented
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
GoogleCodeExporter commented
Fixed in 0.7.1
Original comment by JamesLuo...@gmail.com
on 6 Apr 2010 at 3:55
- Changed state: Fixed