JDK-6314058 : Change JavaScript engine in Mustang to Rhino 1.6R1
  • Type: Bug
  • Component: core-libs
  • Sub-Component: javax.script
  • Affected Version: 6
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2005-08-22
  • Updated: 2012-12-14
  • Resolved: 2005-09-17
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.
6 b53Fixed
Related Reports
Relates :  
Relates :  
Along with javax.script API (JSR 223), Mustang will ship reference JavaScript engine based on Mozilla Rhino. We had integrated Rhino version 1.5R5 in Mustang. We would like to change that to Rhino 1.6R1 (which is the latest Rhino version as of now).

EVALUATION Please refer to "Suggested Fix" for changes.

SUGGESTED FIX Webrev: http://bongo.india.sun.com/jsr223/jdk_webrev2/ Also, refer to attachment "webrev.tar.gz" In addition to changing to Rhino 1.6R1, there are fixes to the following bugs: 6291764 - spec. for javax.script.AbstractScriptEngine.getContext() return value is invalid. 6291447 - spec. for javax.script.ScriptEngine.getFactory mentions undefined interface ScriptEngineInfo. 6291448 - Example in javax.script.ScriptEngineFactory.getMethodCallSyntax method description is invalid. 6291449 - Methods of javax.script.ScriptEngineManager throw unspecified exceptions. 6295362 - The specification for javax.script.SimpleScriptContext is incomplete. 6297588 - uninitialized value of globalScope field of javax.script.SimpleScriptContext. 6304417 - NPE for method javax.script.ScriptEngine.setContext not specified and not thrown 6293920 - javadoc for ScriptEngineManager.getEngineByName is incorrect 6304283 - javax.script.SimpleBindings: NullPointerException and IllegalArgumentException are not specified 6304279 - Unclear specification for non-abstract methods of javax.script.CompiledScript 6318609 - clarification needed on ScriptEngine.getBindings(ScriptContext.GLOBAL_SCOPE) Implementation bugs: 6300598 - javax.script.SimpleBindings.put(String, Object) contradicts spec. 6304284 - Behaviour of javax.script.SimpleScriptContext.getAttributesScope(String name) contradicts spec. 6307996 - JavaScript variable 'n' not stored in Bindings object 6320169 arguments passed to javax.script.Invocable.invoke are not converted to script wrappers

EVALUATION Rhino used in JDK should be the lastest one (1.6R1). This is because: 1) Mozilla fixes bugs only in the lastest release of their products. 2) So far atleast two JavaScript bugs reported that have been fixed in 1.6R1 (while reproduced in 1.5R5) - Please refer to bugs 6289605, 6296223. 3) We would like JDK to have the lastest JavaScript engine from Mozilla.