title: How to fix "Illegal method name <init>$" error in GWT?
body: <p>I followed all advices on <a href="http://google-web-toolkit.googlecode.com/svn/trunk/distro-source/core/src/doc/helpInfo/jsoRestrictions.html" rel="nofollow">http://google-web-toolkit.googlecode.com/svn/trunk/distro-source/core/src/doc/helpInfo/jsoRestrictions.html</a> and still get the infamous <code>&lt;init&gt;$</code> error.</p>
  
  <p>The following statement triggers the error:</p>
  
  <pre><code>final OpenCTM ctm = OpenCTM.create();
  </code></pre>
  
  <p>Where OpenCTM is:</p>
  
  <pre><code>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);
      }-*/;
  
  }
  </code></pre>
  
  <p>The whole code is located in my <a href="https://github.com/neothemachine/glge-gwt" rel="nofollow">GitHub repository</a> and is still pretty small. I'm trying to write a wrapper library for the <a href="http://www.glge.org" rel="nofollow">GLGE</a> framework.</p>
  
  <p>I really don't know what to do anymore.</p>