I'm trying to return an enum value from a JSNI method like in the
example below:
public final native MyEnum getEnum() /*-{
return @my.classpath.MyEnum::valueOf(Ljava/lang/String;)
(this.myString);
}-*/;
The GWT Eclipse plugin marks the return line with the following error:
The method valueOf(java.lang.String) in the type MyEnum is undefined
However, when I try to lunch the application, it runs just fine. Am I
doing something deprecated or is it a bug in the GWT plugin?
Anyone knows a workaround?
Thanks,
Nicola
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment