I followed all advices on http://google-web-toolkit.googlecode.com/svn/trunk/distro-source/core/src/doc/helpInfo/jsoRestrictions.html and still get the infamous <init>$ error.
The following statement triggers the error:
final OpenCTM ctm = OpenCTM.create();
Where OpenCTM is:
public final class OpenCTM extends GObject {
protected OpenCTM() {}
public static native OpenCTM create() /*-{
return new $wnd.GLGE.OpenCTM();
}-*/;
public native void setSrc(String url, String relativeTo) /*-{
this.setSrc(url, relativeTo);
}-*/;
}
The whole code is located in my GitHub repository and is still pretty small. I’m trying to write a wrapper library for the GLGE framework.
I really don’t know what to do anymore.
It turned out that the error was a subsequent error and has hidden the root cause.
The solution is to actually compile this whole thing now and then, although theoretically unnecessary in dev mode. This led to:
The corresponding Java code was:
As
inis a reserved word in JS, this probably led to some subsequent problems. Long story short, I changed the parameter toinputand got it working…Frustrating!