Monday, January 31, 2011

enum.valueOf(Ljava/lang/String;) appears as undefined in Eclipse plugin

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;)

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?


You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment