Friday, August 18, 2017

Re: ClassCastException in generics

if it's an array (like a javascript array) use name = "Array".

If it is an Object that encapsulates array functionality use "Object".



On Fri, Aug 18, 2017 at 5:05 PM, Vassilis Virvilis <vasvir2@gmail.com> wrote:
Try to annotate it with

    @JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object")

Hope that helps



On Fri, Aug 18, 2017 at 5:01 PM, Kirill Prazdnikov <pkirill@gmail.com> wrote:
Hi, I`m always getting ClassCastException if I use @JsType(isNative = true) object as a generic template argument.

Is it possbile to do something with that ?
Is it possbile to avoid check-cast generation if the generic is used with @JsType type ?

Thanks

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



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