Annotation with Annotation parameter

1 view
Skip to first unread message

josivan

unread,
Mar 23, 2010, 5:13:26 PM3/23/10
to GWT-Ent Developer Forum
Hi James, I'm tryng 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);
}

Its valid, right?
Well, when I'm compile my code, 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.

Any tip to use or resolv this?

tks

Josivan

james...@gmail.com

unread,
Apr 6, 2010, 2:08:29 AM4/6/10
to GWT-Ent Developer Forum
Thanks, Fixed, please download 0.7.1

James

Josivan de Souza

unread,
Apr 6, 2010, 8:11:42 AM4/6/10
to gwt...@googlegroups.com
:) good I'll test today, and on the end of the day I'll report...
thanks again and congratulations.

j.

--
You received this message because you are subscribed to the Google Groups "GWT-Ent Developer Forum" group.
To post to this group, send email to gwt...@googlegroups.com.
To unsubscribe from this group, send email to gwt-ent+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gwt-ent?hl=en.


josivan

unread,
Apr 12, 2010, 10:06:25 PM4/12/10
to GWT-Ent Developer Forum
Hi Everybody
The last commit from James its running with success...]
tks james :)
[]'s
Josivan
Reply all
Reply to author
Forward
0 new messages