JDK-6980447 : Rhino JavaScript engine code in jdk-7 has to updated with the latest code from Rhino 1.7R3
  • Type: Bug
  • Component: core-libs
  • Sub-Component: javax.script
  • Affected Version: 6,7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,windows_vista
  • CPU: generic,x86
  • Submitted: 2010-08-27
  • Updated: 2017-05-16
  • Resolved: 2011-02-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b126Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
As a reference jsr-223 script engine, javascript engine based on Mozilla Rhino was added to JDK 6. We used the then current Rhino code (version 1.6R2) implementing JavaScript 1.6 in JDK 6. In the mean time, Rhino code has evolved to version 1.7R3 and now supports JavaScript version 1.8. 

We need to update Rhino code in  JDK 7 with the code from the latest 1.7R3 version. This is needed because

(a) Rhino now supports JavaScript 1.8
(b) Rhino supports parts of ECMAScript 5 specification

Also, in JDK 6 we had excluded the optional E4X (XML support for javascript - ECMAScript standard  ECMA-357). This is because of dependency on Apache XML beans (footprint and security concerns). The 1.7R3 version of Rhino supports E4X using DOM 3 without depending on anything else. So, we may want to support E4X in JDK 7.

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/build/jdk/rev/e67a399dd4ad
17-01-2011

EVALUATION code review done. Code changes will be integrated soon.
17-11-2010