Thomas advice is of course preferable
But sometimes gwt type checking drives me crazy. Then I use thisJsUtil.java
----
public static native <T, V> V cast(T data) /*-{
return data;
}-*/;
----
return data;
}-*/;
----
This casts anything to anything...
Vassilis
On Wed, Oct 18, 2017 at 2:39 PM, Thomas Broyer <t.broyer@gmail.com> wrote:
You should be able to cast a JSO to a JsType (native ones only?)
And in this case they indeed represent the same kind of objects so this is safe.
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com .
To post to this group, send email to google-web-toolkit@googlegroups.com .
Visit this group at https://groups.google.com/group/google-web-toolkit .
For more options, visit https://groups.google.com/d/optout .
--
Vassilis Virvilis
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment