Review request JDK-8006181 : nashorn script engine does not run jrunscript's initialization script
A. Sundararajan
sundararajan.athijegannathan at oracle.com
Mon Jan 14 04:58:38 PST 2013
Hi,
Please review http://cr.openjdk.java.net/~sundar/8006181/
This fix is by Andreas Rieber. The fix is to make sure nashorn script
engine runs jrunscript's init script. Previously, nashorn script engine
did not run jrunscript's init.js due to various incompatibilities b/w
Rhino and Nashorn implementations. But, with Andreas' fix nashorn script
engine runs a replacement "init.js".
Please note that ideally we should fix JDK8's init.js copy. But, nashorn
has not yet hit main jdk repo. Also, there is a chance that rhino *may*
be removed for jdk8. So instead of waiting for all those, I am adapting
Andreas' change for the interim. With the replacement init.js in
nashorn.jar, nashorn will run jrunscript initialization script and we
can run existing scripts that use jrunscript's init facilities. We can
eventually modify jrunscript's init.js in future.
Please review.
Thanks
-Sundar
More information about the nashorn-dev
mailing list