Thursday, April 22, 2021

[jsinterop] constructor reference


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() {

public static class Hello {}

public static native JsConstructorFn toCtor(Class clazz) /*-{
    return clazz.@java.lang.Class::jsConstructor;

and config
<inherits name='' />
<inherits name="elemental2.dom.Dom"/>
<inherits name="elemental2.core.Core"/>

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
To view this discussion on the web visit

No comments:

Post a Comment