title: GWT super dev mode, SimpleCheckBox.wrap() AssertionError
body: <p>With GWT I had an issue with <code>SimpleCheckBox.wrap()</code> method as it produced the AssertionError in DevMode. And I used to work around that by adding the code that was only being executed if <code>GWT.isScript()</code> is true. I face the same challenge now with SuperDevMode and the question is: is there a method of recognizing superdevmode from the source code during runtime?</p>
  
  <p>Thanks in advance!</p>
  
  <p>P.S. There is no quick way now of getting rid of that <code>.wrap()</code> call from the code so question is really limited to run mode recognition.</p>
  
  <p>Upd. 1:</p>
  
  <p>I created a new "special" class with no .wrap() method and added these lines into my module's gwt.xml file:</p>
  
  <pre><code>&lt;set-property name="superdevmode" value="on"/&gt;
  &lt;replace-with class="com.project.client.MyWidgetSuperdevmode"&gt;
      &lt;when-type-is class="com.jostleme.jostle.ui.rich.client.MyWidgetProdMode" /&gt;
      &lt;when-property-is name="superdevmode" value="on"/&gt;
  &lt;/replace-with&gt;
  </code></pre>
  
  <p>And tried multiple things: compiled via bookmark, recompiled project old way, restarted both regular and codeserver apps; and in sourcemaps can only see class MyWidgetProdMode. What am I doing wrong? Will new classes be loaded on compile?</p>