Project

General

Profile

Actions

Bug #14753

closed

Warning: Nashorn engine is planned to be removed from a future JDK release

Added by François ARMAND over 5 years ago. Updated about 3 years ago.

Status:
Released
Priority:
N/A
Category:
System integration
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Large
Priority:
18
Name check:
Fix check:
Regression:

Description

UPDATE: as of JDK15, nashorn is removed.

GraalJS seems the best solution:
- it can run on openjdk as a simple lib dep: https://github.com/graalvm/graaljs/blob/master/docs/user/RunOnJDK.md
- it has nashorn compatible mode: https://github.com/graalvm/graaljs/blob/master/docs/user/ScriptEngine.md

Security will need to be updated.

===

Since OpenJDK 11, we get a warning: "Warning: Nashorn engine is planned to be removed from a future JDK release".

The fact that nashorn will be removed is terrible, and we will need to address that. Some reference links seems to tell that we will need to switch to GraalVM at some point:

junit-team/junit5#1481
https://openjdk.java.net/jeps/335
https://jaxenter.com/nashorn-javascript-engine-deprecated-145320.html
https://www.infoworld.com/article/3291322/javascript/oracle-switch-now-from-nashorn-javascript-engine-to-graalvm.html
https://medium.com/graalvm/oracle-graalvm-announces-support-for-nashorn-migration-c04810d75c1f

In the meantime, we get a bad, red error message at startup, and we should really hide it, because rudder user really don't care about that. We need to add at startup options:

-Dnashorn.args="--no-deprecation-warning" 

Related issues 2 (0 open2 closed)

Related to Rudder - Bug #14822: Remove warning: "Nashorn engine is planned to be removed from a future JDK release " ReleasedBenoît PECCATTEActions
Related to Rudder - Bug #18214: Document that JDK 15 is not supported because of nashorn removingReleasedAlexis MoussetActions
Actions

Also available in: Atom PDF