http://gwt-code-reviews.appspot.com/1174801/diff/1/2
File user/src/com/google/gwt/core/CoreWithUserAgent.gwt.xml (right):

http://gwt-code-reviews.appspot.com/1174801/diff/1/2#newcode22
user/src/com/google/gwt/core/CoreWithUserAgent.gwt.xml:22: <any>
I'll go ahead and remove them for clarity

http://gwt-code-reviews.appspot.com/1174801/diff/1/3
File user/src/com/google/gwt/core/EmulateJsStack.gwt.xml (right):

http://gwt-code-reviews.appspot.com/1174801/diff/1/3#newcode37
user/src/com/google/gwt/core/EmulateJsStack.gwt.xml:37:
<when-property-is name="compiler.emulatedStack" value="true" />
I'm unable to make compiler.emulatedStack and compiler.stackMode have
inconsistent results in this way.

Test case:
<module>
  <inherits name="com.google.gwt.core.EmulateJsStack" />
  <set-property name="compiler.emulatedStack" value="true" />

  <!-- Ultimately inherits com.google.gwt.core.EmulateJsStack -->
  <inherits name="com.google.gwt.user.User" />
  <!-- Just to be sure -->
  <inherits name="com.google.gwt.core.EmulateJsStack" />

  <entry-point class="...." />

  <set-configuration-property
name="compiler.emulatedStack.recordLineNumbers" value="true" />
  <set-configuration-property
name="compiler.emulatedStack.recordFileNames" value="true" />
  <set-property name="compiler.emulatedStack" value="false" />
</module>

Results in:
  compiler.emulatedStack -> false
  compiler.stackMode -> native
  compiler.emulatedStack.recordLineNumbers -> true
  compiler.emulatedStack.recordFileNames -> true




Swapping the two places where compiler.emulatedStack is set to
true/false, i.e.
<module>
  <inherits name="com.google.gwt.core.EmulateJsStack" />
  <set-property name="compiler.emulatedStack" value="false" />

  <!-- Ultimately inherits com.google.gwt.core.EmulateJsStack -->
  <inherits name="com.google.gwt.user.User" />
  <!-- Just to be sure -->
  <inherits name="com.google.gwt.core.EmulateJsStack" />

  <entry-point class="...." />

  <set-configuration-property
name="compiler.emulatedStack.recordLineNumbers" value="true" />
  <set-configuration-property
name="compiler.emulatedStack.recordFileNames" value="true" />
  <set-property name="compiler.emulatedStack" value="true" />
</module>

Results in:
  compiler.emulatedStack -> true
  compiler.stackMode -> emulated
  compiler.emulatedStack.recordLineNumbers -> true
  compiler.emulatedStack.recordFileNames -> true

http://gwt-code-reviews.appspot.com/1174801/show

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to