Re: [jsinterop] constructor reference

2021-04-22 Thread pavel....@gmail.com
After some experiments, I figured out that option *-generateJsInteropExports* is required to make the code work. четвер, 22 квітня 2021 р. о 14:23:51 UTC+2 pavel@gmail.com пише: > Hi, > > I'm trying to get a reference on the constructor of the @JsType class but > all the time receive

[jsinterop] constructor reference

2021-04-22 Thread pavel....@gmail.com
Hi, I'm trying to get a reference on the constructor of the @JsType class but all the time receive undefined. So, I need some suggestion where to look My code is public void onModuleLoad() { DomGlobal.alert(toCtor(Hello.class)); } @JsType public static class Hello {} public static native

Re: Java Method Overloading

2021-04-22 Thread pierre...@gmail.com
Thanks a lot, Lofi for your help. My code is similar to your CalculatorNoExport class as I dont use jsInterop. I tried your example and it's works with the same GWTversion 2.9.0. So for now, I dont have any clue what prevents this to not work in my project. Of course, it's more complex than your