Re: using Generics in GWT JsInterop: Uncaught java.lang.ClassCastException

2016-07-29 Thread zakaria amine
It resolved the compilation problem, but it did throw something like a javascript error "cannot resolve property gwidgets of undefined" which I could not resolve, even by adding namespaces. Le mercredi 27 juillet 2016 16:42:12 UTC+2, Jens a écrit : > > > Thanks for your suggestion. SNAPHOT did

Re: using Generics in GWT JsInterop: Uncaught java.lang.ClassCastException

2016-07-27 Thread Kirill Prazdnikov
And after the release it will be possible to remove old deprecated stuff like legacy devmode and old IE support, right ? On Wednesday, July 27, 2016 at 6:28:17 PM UTC+3, Thomas Broyer wrote: > > > The final release will likely be the same as the current SNAPSHOT, unless > blockers are found in

Re: using Generics in GWT JsInterop: Uncaught java.lang.ClassCastException

2016-07-27 Thread Thomas Broyer
On Wednesday, July 27, 2016 at 4:28:29 PM UTC+2, zakaria amine wrote: > > Hoping that the stable release will correct this issue. > The final release will likely be the same as the current SNAPSHOT, unless blockers are found in RC1 (RC1 should be the same as the current SNAPSHOT, when it come

Re: using Generics in GWT JsInterop: Uncaught java.lang.ClassCastException

2016-07-27 Thread Jens
> Thanks for your suggestion. SNAPHOT did resolve this error, but caused > others. > Which other errors? -- J. -- 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

Re: using Generics in GWT JsInterop: Uncaught java.lang.ClassCastException

2016-07-27 Thread zakaria amine
Thanks for your suggestion. SNAPHOT did resolve this error, but caused others. I ended up using JSNI and the cast() method of the JavaScriptObject. @JsFunctionpublic interface Function{ public JavaScriptObject call(JavaScriptObject event); } @JsType public class MouseEvent extends JavaScr

Re: using Generics in GWT JsInterop: Uncaught java.lang.ClassCastException

2016-07-26 Thread Thomas Broyer
On Tuesday, July 26, 2016 at 4:45:03 PM UTC+2, zakaria amine wrote: > > I have an interface annotated with @JsFunction that I use as a callback > for events. As there are different types of events, I have added a type > parameter: > > > @JsFunctionpublic interface Function{ > > public JavaScr

using Generics in GWT JsInterop: Uncaught java.lang.ClassCastException

2016-07-26 Thread zakaria amine
I have an interface annotated with @JsFunction that I use as a callback for events. As there are different types of events, I have added a type parameter: @JsFunctionpublic interface Function{ public JavaScriptObject call(T event); } >From the entry point I do something like : //... m