title: Failed to resolve class via deferred binding
body: <pre><code>// ...some imports
  
  public class Menu {
      final MenuMaker myClass = GWT.create(MenuMaker.class);  // ERROR
  </code></pre>
  <p>My ...gwt.xml:</p>
  <pre><code>...
  &lt;generate-with class=&quot;com.gwt.rebind.MenuGenerator&quot;&gt;
    &lt;when-type-assignable class=&quot;com.gwt.client.MenuMaker&quot; /&gt;
  &lt;/generate-with&gt;
  ...
  </code></pre>
  <p>All work perfectly when I run compile in DevMode but when I &quot;Build the project with the GWT compiler&quot; I get this error:</p>
  <pre><code>      [ERROR] Line 15:  Failed to resolve 'com.gwt.client.MenuMaker' via deferred binding
     Scanning for additional dependencies: jar:file:/C:/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201208080121-rel-r42/gwt-2.4.0/gwt-user.jar!/com/google/gwt/dom/client/DOMImpl.java
        [WARN] For the following type(s), generated source was never committed (did you forget to call commit()?)
           [WARN] com.gwt.client.MenuMakerGen
     [ERROR] Cannot proceed due to previous errors
  </code></pre>
  <p>At the end of com.gwt.rebind.MenuGenerator:</p>
  <pre><code>sourceWriter.commit(logger);
  </code></pre>