Friday, August 31, 2012

Re: Invalid JSNI method reference

On Thursday, August 30, 2012 7:48:52 PM UTC+2, Steve C wrote:
For the method you're using, you could make it more general-purpose:

public static void messageBox( String sTitle, Object message )
Window.alert( sTitle + " | " + message.toString() );

@com.ecopy.gwt.client.Utils::messageBox(Ljava/lang/String;,Ljava/lang/Object;)("TheTitle", 99.999);

And I believe that AutoBoxing will take care of the double-to-Double conversion, but haven't actually tested that.

AFAICT, it won't. You'd have to use @java.lang.Double::valueOf(99.999)

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit
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