On Fri, Apr 9, 2010 at 4:21 PM, Lex Spoon <[email protected]> wrote: > John, I've been thinking about String.valueOf(). That one's tough, because > ideally we want the Java conversion. That's generally our story with > compiled GWT code: it behaves the same as it would on a JVM. Unfortunately, > I don't see an easy way to get the Java meaning when translating to JS. >
We can certainly do it, the question is are we willing to pay the cost. > It looks easier to say that GWT uses the JS meaning. In that case, though, > we should try to make dev mode also use the JS meaning. > Short of major hackery I don't see how we can do it. The JVM itself already knows about a number of String operations, so I am not sure we can really replace String.valueOf even by rewriting every callsite. -- John A. Tamplin Software Engineer (GWT), Google -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
