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 JsConstructorFn toCtor(Class clazz) /*-{
return clazz.@java.lang.Class::jsConstructor;
}-*/;
and config
<inherits name='com.google.gwt.user.User' />
<inherits name="elemental2.dom.Dom"/>
<inherits name="elemental2.core.Core"/>