[gwt-contrib] Re: Elemental2 1.0.0-beta-1 and casting behaves unexpectedly

2017-05-31 Thread Daniel Harezlak
OK, this this particular use case was explained here: https://groups.google.com/forum/#!topic/google-web-toolkit-contributors/8lESs0WMHDM. Thank you Arnaud. On Wednesday, May 31, 2017 at 7:21:38 PM UTC+2, Daniel Harezlak wrote: > > Js.cast() also throws but Js.uncheckedCast() does not. Can anyo

[gwt-contrib] Re: Elemental2 1.0.0-beta-1 and casting behaves unexpectedly

2017-05-31 Thread Daniel Harezlak
Js.cast() also throws but Js.uncheckedCast() does not. Can anyone elaborate? On Wednesday, May 31, 2017 at 12:06:08 PM UTC+2, gwtt...@gmail.com wrote: > > How about using jsinterop.base.Js.cast() for the casing instead? - see: > https://groups.google.com/forum/#!topic/Google-Web-Toolkit/0XGv7EhDF

[gwt-contrib] Re: Elemental2 1.0.0-beta-1 and casting behaves unexpectedly

2017-05-31 Thread Kirill Prazdnikov
Hi, I have the same issue and use the same JSNI hack It is interesting why GWT does runtime type checks for @JsType(isNative = true) ? Why is it reasonable ? -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and

[gwt-contrib] Re: Elemental2 1.0.0-beta-1 and casting behaves unexpectedly

2017-05-31 Thread gwttechg
How about using jsinterop.base.Js.cast() for the casing instead? - see: https://groups.google.com/forum/#!topic/Google-Web-Toolkit/0XGv7EhDFmc On Wednesday, May 31, 2017 at 7:23:20 AM UTC+1, Daniel Harezlak wrote: > > Hi, I have the following code using elemental2-dom: > > HTMLIFrameElement frame

[gwt-contrib] Re: Elemental2 1.0.0-beta-1 and casting behaves unexpectedly

2017-05-31 Thread Daniel Harezlak
The way to work around it is to use a native method: private static native HTMLDocument getHtmlDocument(HTMLIFrameElement frame) /*-{ return frame.contentDocument; }-*/; Is this required? On Wednesday, May 31, 2017 at 8:23:20 AM UTC+2, Daniel Harezlak wrote: > > Hi, I have the following cod