MMS • RSS
javax.script API. Oracle states the deprecation of Nashorn will not affect the
The specific JDK modules to be deprecated include:
nashorn– contains the
.scripting.nashorn.shell– contains the
dynalink– contains the Dynalink support library
— Thomas Wuerthinger (@thomaswue) June 7, 2018
A separate JEP will be filed for the actual removal of the types and modules in a future JDK feature release.
The overall feedback from the development community has been that of concern, especially from those that use Nashorn heavily for business logic. Oracle sounds willing to revert JEP 335 if there is enough developer feedback.
An alternative is for a set of credible developers to express a clear desire to maintain Nashorn going forward. If that happens before this JEP is integrated then this JEP can be withdrawn. If that happens after this JEP is integrated, but before Nashorn is removed, then a follow-on JEP can revert the deprecation.
Per Oracle, Nashorn usage is very difficult to track, so ideally any pushback will inform whether JEP 335 goes through or not. For developers using Nashorn, feedback should be provided to Oracle as this will give better insight into actual Nashorn usage.
Readers can also keep up to date with all Java-related news by visiting the InfoQ Java homepage.