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