tool. The engine, the APIs, and the tool were
deprecated for removal in Java 11 with the
express intent to remove them in a future release.
With the rapid pace at which ECMAScript language constructs, along with APIs, are adapted and modified, we have found Nashorn challenging to maintain.
This removal does not affect, in any way, the
Two JDK modules will be permanently removed:
jdk.scripting.nashorn-- contains the
jdk.scripting.nashorn.shell-- contains the
Risks and Assumptions
We assume that developers who rely on Nashorn have had enough notice of its
proposed removal to make alternative arrangements. The deprecation-for-removal
of Nashorn in JDK 11 was confirmed in June 2018, causing the proposed removal
to be flagged at every use of the
jdk.nashorn.* API and the
jjs tool in JDK
11, 12, and 13. During this period, no set of credible developers expressed a
clear desire to maintain Nashorn in JDK 14 and beyond.