On Sat, Sep 11, 2010 at 8:23 PM, jarrod jarrod.carl...@gmail.com wrote:
I filed a ticket for this issue... even though the documentation
_says_ they're supported, I wasn't able to get varargs working across
the Java-JavaScript bridge... at least not in Development mode. Worked
fine when compiled, though.
http://code.google.com/p/google-web-toolkit/issues/detail?id=5255
Correct, Java arrays (and varargs are shown to the calling code as an
array) are opaque objects to Javascript -- all you can do with them is
pass them to other Java code. The fact that it works in compiled mode
is just due to current implementation details.
See
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html#sharing
--
John A. Tamplin
Software Engineer (GWT), Google
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors