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 [email protected]::jsConstructor;
}-*/;

and config
<inherits name='com.google.gwt.user.User' />
<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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/d049f0f7-3ebb-48aa-bc50-3852e9e7d746n%40googlegroups.com.

Reply via email to