Thomas advice is of course preferable
But sometimes gwt type checking drives me crazy. Then I use this
JsUtil.java
----
public static native <T, V> V cast(T data) /*-{
return data;
}-*/;
----
This casts anything to anything...
Vassilis
On Wed, Oct 18, 2017 at 2:39 PM, Thomas Broyer <[email protected]> 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 [email protected].
> To post to this group, send email to [email protected].
> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.