New Features in this Release
-
Exception handling. You can throw and catch exceptions using the
throwandtry...catchstatements. See "Exception Handling Statements" on page 81. -
New operators in and instanceof. The
inoperator returns true if the specified property is in the specified object; see "in" on page 50. Theinstanceofoperator returns true if the specified object is of the specified object type; see "instanceof" on page 50. - Changes to LiveConnect. Several changes to LiveConnect improve the way Java and JavaScript code communicate:
-
JavaClassobjects are automatically converted to instances ofjava.lang.Classwhen you pass them as parameters to methods. See "JavaClass objects" on page 152. -
You can pass a one-character string to a Java method which requires an argument of type
char. See "Arguments of Type char" on page 140. - If your JavaScript code accesses a Java data member or method and fails, the Java exception is passed on to JavaScript for you to handle. See "Handling Java Exceptions in JavaScript" on page 141.
- Enhancements to the JSException class change the way you handle JavaScript exceptions in your Java code. See "Handling JavaScript Exceptions in Java" on page 144.
-
Changes to the Function object. You should no longer specify a function name when using the
argumentsarray; theargumentsarray is a variable and is no longer a property ofFunctionobjects. This change improves performance. See "Using the arguments Array" on page 87.
Table of Contents | Previous | Next | Index
Last Updated: 10/29/98 15:50:58
