From 35ca7754237fe0b2ccd3970401c367cb0dc01a2c Mon Sep 17 00:00:00 2001 From: "igor%mir2.org" Date: Tue, 3 Aug 2004 17:13:40 +0000 Subject: [PATCH] Preparations for 1.6R1 RC1 --- js/rhino/docs/changes.html | 102 ++++++++++++++++++++++++++++++++++--- js/rhino/docs/doc.html | 9 +--- 2 files changed, 96 insertions(+), 15 deletions(-) diff --git a/js/rhino/docs/changes.html b/js/rhino/docs/changes.html index 0a2df5525d79..45f711c8aaf6 100644 --- a/js/rhino/docs/changes.html +++ b/js/rhino/docs/changes.html @@ -1,23 +1,109 @@ - - - - - Change Log + + + + + +Change Log + + +

-Change Log for Significant Rhino Changes

+Change Log for Rhino -This is a log of significant changes since Rhino 1.5 Release 5. +

Release candidate 1 for Rhino 1.6R1

-

Support for Date.now()

+

Release overview

+

+Rhino 1.6R1 is the new major release of Rhino. It supports ECMAScript for XML (E4X) as specified by ECMA 357 standard. E4X is a set of language extensions adding native XML support for JavaScript without affecting the existing code base. +

+

+This version of Rhino should be binary compatible with the current embeddings that use only public API unless the code use the previously deperected classes as documented below. Please report any incompatibilitiy issues to Bugzilla. +

+ + +

E4X implementation

+

+The E4X implementation was donated to Rhino project by AgileDelta, Inc.. It uses XMLBeans library to implement E4X runtime. The implementation was tested against versions 1.0.2 and 1.0.3 of XMLBeans. Please make sure that xmlbeans.jar is avaialble on the classpath if you use E4X in your scripts. +

+

+See Bugzilla 242805 for details. +

+ + +

Other changes

+ +

Common root for Rhino execeptions

+

+Now all Rhino execption classes are derived from org.mozilla.javascript.RhinoException which extends java.lang.RuntimeException. +The class gives the uniform way to access information about the script origin of the exception and simplifies execption handling in Rhino embeddings. +

+

+See Bugzilla 244492 for details. +

+ +

Removal of code complexity limits in the interpretr

+

+The interpreter mode in Rhino does not limit any longer the script size or code complexity. It should be possible to execute any script as long as JVM resources allow so. +

+

+See Bugzilla 244014 for details. +

+ + +

JavaImporter constructor

+

+JavaImporter is a new global constructor that allows to omit explicit package names when scripting Java: +

+
+var SwingGui = JavaImporter(Packages.javax.swing,
+                            Packages.javax.swing.event,
+                            Packages.javax.swing.border,
+                            java.awt.event,
+                            java.awt.Point,
+                            java.awt.Rectangle,
+                            java.awt.Dimension);
+...
+
+with (SwingGui) {
+    var mybutton = new JButton(test);
+    var mypoint = new Point(10, 10);
+    var myframe = new JFrame();
+...
+}
+
+

+Previously such functionality was available only to embeddings that used org.mozilla.javascript.ImporterTopLevel class as the top level scope. The class provides additional importPackage() and importClass() global functions but their extensive usage has tendency to pollute the global name space with names of Java classes +

+

+See Bugzilla 245882 for details. +

+ + +

Support for Date.now()

Date.now() function which is a SpiderMonkey extension to ECMAScript standard is available now in Rhino. The function returns number of milliseconds passed since 1970-01-01 00:00:00 GMT.

+ +

Removal of deprecated classes

+

+The following classes that were deprecated in Rhino 1.5R5 are no longer available in Rhino 1.6R1: +

+ +See documentation for org.mozilla.javascript.optimizer.ClassCompiler that provides replacement for ClassNameHelper and ClassRepository and org.mozilla.javascript.RhinoException that gives the common root for all Rhino exceptions. +

+

back to top diff --git a/js/rhino/docs/doc.html b/js/rhino/docs/doc.html index b3e0b2556ee6..1d7b9bfb17dd 100644 --- a/js/rhino/docs/doc.html +++ b/js/rhino/docs/doc.html @@ -30,9 +30,9 @@ What you must have to run Rhino; what Rhino cannot do. - What's new in 1.5R5 + Change log - Changes since 1.5R4. + Recent Rhino Changes Rhino Debugger @@ -56,11 +56,6 @@ with each other transparently in a distributed JavaScript system using CORBA.How to use Rhino with apps that support BSF. - Recent Changes - - Describes recent changes to Rhino. - - FAQ Answers to frequently asked questions about Rhino.