JDK-8241751 : Remove the Nashorn JavaScript Engine
  • Type: CSR
  • Component: core-libs
  • Sub-Component: jdk.nashorn
  • Priority: P3
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 15
  • Submitted: 2020-03-27
  • Updated: 2020-04-21
  • Resolved: 2020-04-07
Related Reports
CSR :  
Description
Summary
-------

Nashorn JavaScript engine is being removed from JDK

Problem
-------

Nashorn is a JSR-223 (javax.script) compliant script engine for JavaScript language. This has been deprecated for removal already. 

Solution
--------

We want to remove nashorn script engine from JDK. We plan to remove the following two nashorn related modules and associated build instructions + tests from JDK.

jdk.nashorn.scripting

jdk.nashorn.scripting.shell

Specification
-------------

The removal of above mentioned nashorn related modules will remove the following APIs

    the jdk.nashorn.api.scripting and jdk.nashorn.api.tree packages.
(from jdk.scripting.nashorn module)

    the jjs tool in $JDK/bin directory.
(from jdk.scripting.nashorn.shell module)

Specdiff: http://cr.openjdk.java.net/~sundar/8241751/specdiff/overview-summary.html

Webrev: http://cr.openjdk.java.net/~sundar/8241751/webrev.00/
Comments
Moving to Approved with a "medium" compatibility risk estimate. The attached patch is serving as the official record of the change. For future reference, while the live links are a convenient supplement, webevs and specdiffs to be used as the archive need to be attached to the CSR.
07-04-2020

[~darcy] I've added specdiff and webrev for the changes.
06-04-2020

Moving to Provisional.
02-04-2020