In version 1.4 of JavaScript, this method is overridden by the toString() method belonging to the java.lang.Object super-class.
Prior to that, it yielded a string like this:
[object JavaArray]
If you expect to use this for any useful purpose in scripting, you will need to override it with a custom handler that converts the object to a string that delivers the instance value rather than the type of its prototype object.
Prev | Home | Next |
JavaArray.length | Up | JavaClass object |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |