kohiro / gwt-ent

Automatically exported from code.google.com/p/gwt-ent
0 stars 0 forks source link

Annotation with Annotation parameter #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 9 years ago
Fixed in 0.7.1

Original comment by JamesLuo...@gmail.com on 6 Apr 2010 at 3:55