title: GWT deferred binding not working after compilation
body: <p>I am trying to implement deferred binding using generators. When I an testing deferred binding in dev mode it works as expected, when I am switching to production deferred binding is not working for some reason.
  I have following classes</p>
  
  <pre><code>public class GeneratorTest implements EntryPoint {
  
      //should be modified by generator
      public static class GeneratorTestPrefs extends PreferencesImpl {
  ...
      }
  ...
  }
  
  public class PreferencesImpl implements Preferences {
  ...
  }
  
  public interface Preferences {
  
      public void load(String key, Storage storage);
  
      public void store(String key, Storage storage);
  }
  </code></pre>
  
  <p>And following definition in gwt module.xml</p>
  
  <pre><code>&lt;generate-with class="com.xxx.xxx.gwt.generator.server.PreferencesGenerator"&gt;
      &lt;when-type-assignable class="com.xxx.xxx.gwt.generator.client.Preferences"/&gt;
  &lt;/generate-with&gt;
  </code></pre>
  
  <p>I added log for classes created by </p>
  
  <pre><code>GeneratorTestPrefs prefs = GWT.create(GeneratorTestPrefs.class) 
  </code></pre>
  
  <p>In case of dev mode, in log file, I see GWT <strong>is using</strong> class created by generator (<strong>GeneratorTestPrefs_PreferencesAdapter</strong>)</p>
  
  <pre><code>[java] INFO: deferred binding: com.xxx.xxx.gwt.generator.client.GeneratorTestPrefs_PreferencesAdapter
  </code></pre>
  
  <p>In case of production mode, in log file, I see GWT <strong>is not using</strong> class created by generator (<strong>GeneratorTest$GeneratorTestPrefs</strong>)</p>
  
  <pre><code>Wed Apr 01 15:48:06 GMT+300 2015 com.xxx.xxx.gwt.generator.client.GeneratorTest INFO: deferred binding: com.xxx.xxx.gwt.generator.client.GeneratorTest$GeneratorTestPrefs
  </code></pre>
  
  <p>I have no idea what is wrong. Am I missing something? Am I doing something wrong?</p>
  
  <p>Thank you in advance!</p>