[gwt-contrib] Re: GwtAstBuilder better handling of JSNI refs to constants (issue1449818)

2011-06-14 Thread scottb
Patch updated to fix GwtAstBuilderTest. http://gwt-code-reviews.appspot.com/1449818/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: GwtAstBuilder better handling of JSNI refs to constants (issue1449818)

2011-06-14 Thread jbrosenberg
Can you briefly describe the reason for this change? If I understand correctly, the change is to extend handling of compile time constants to Strings as well as base types? http://gwt-code-reviews.appspot.com/1449818/diff/4001/dev/core/src/com/google/gwt/dev/jjs/impl/BuildTypeMap.java File

[gwt-contrib] Re: GwtAstBuilder better handling of JSNI refs to constants (issue1449818)

2011-06-14 Thread scottb
Yes, according to the JLS, Strings are considered compiled time constants, but we've been doing this wrong up to now. (Not that it mattered before now.) http://gwt-code-reviews.appspot.com/1449818/diff/4001/dev/core/src/com/google/gwt/dev/jjs/impl/BuildTypeMap.java File

[gwt-contrib] Re: GwtAstBuilder better handling of JSNI refs to constants (issue1449818)

2011-06-14 Thread scottb
Okay, much nicer! :D http://gwt-code-reviews.appspot.com/1449818/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: GwtAstBuilder better handling of JSNI refs to constants (issue1449818)

2011-06-14 Thread jbrosenberg
LGTM w/a couple questions http://gwt-code-reviews.appspot.com/1449818/diff/2003/dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java File dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java (right):

[gwt-contrib] Re: GwtAstBuilder better handling of JSNI refs to constants (issue1449818)

2011-06-14 Thread scottb
http://gwt-code-reviews.appspot.com/1449818/diff/2003/dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java File dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java (right):

[gwt-contrib] Re: GwtAstBuilder better handling of JSNI refs to constants (issue1449818)

2011-06-14 Thread zundel
lgtm http://gwt-code-reviews.appspot.com/1449818/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors