On Friday, February 15, 2013 11:15:40 PM UTC+1, Thomas Broyer wrote:
String is a special beast, as it's emulated by a JS String. It wouldn't surprise me if that use case weren't supported. I grep'ed the source code of GWT and didn't find any such use.
Yeah. I found this in the docs for the emulated string:
For efficiency we handle String in a specialized way, in fact, a
java.lang.String is actually implemented as a native JavaScript String. Then
we just load up the prototype of the JavaScript String object with the
appropriate instance methods.
So it should be possible to use the instance methods but not with the object.@java.lang.String... notation. Any ideas on what could be used instead?