Hi, I've tried returning a Number type from JavaScript but GWT doesn't
allow me to cast it to an Integer.
It sees it as a generic Object (I guess, that's how JavaScript works):
public final native <T> T get( String property ) /*-{
if( typeof(this[property]) == "number" )
{
return new Number(this[property]);
}
else
{
return this[property];
}}-*/;
java.lang.ClassCastException:
com.google.gwt.core.client.JavaScriptObject$ cannot be cast to
java.lang.Integer
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---