You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.
This is a distant issue that we likely will not have to worry about for some time but I figured it was worth documenting formally and getting some of my research on the topic written down.
As per JEP 372, the Nashorn Javascript engine has been removed from Java 15 onward. The Nashorn engine is marked as deprecated starting with Java 11, causing warnings like the following to be raised periodically when using the JavascriptValidator:
Warning: Nashorn engine is planned to be removed from a future JDK release
In Nashorn's impending absence, GraalVM seems to be the most widely supported replacement. There are some quirks, however, that may make it difficult to adopt GraalVM. The recommended migration path involves replacing the standard OpenJDK VM with Graal's VM (as detailed in this blog post from GraalVM) but a less performant setup using the stock JDK is also available. From my relatively light research, our use case may not even take advantage of the features provided by Graal's alternate VM anyways, potentially making the choice clearer.
To this point, I don't believe there has been any discussion about moving to newer versions of Java so, again, this may be a non-issue for the foreseeable future. That being said, an alternate JS engine may also be valuable for potential performance gains so this may be a desirable path to take even before migrating to newer versions of Java.
The text was updated successfully, but these errors were encountered:
This is a distant issue that we likely will not have to worry about for some time but I figured it was worth documenting formally and getting some of my research on the topic written down.
As per JEP 372, the Nashorn Javascript engine has been removed from Java 15 onward. The Nashorn engine is marked as deprecated starting with Java 11, causing warnings like the following to be raised periodically when using the
JavascriptValidator
:In Nashorn's impending absence, GraalVM seems to be the most widely supported replacement. There are some quirks, however, that may make it difficult to adopt GraalVM. The recommended migration path involves replacing the standard OpenJDK VM with Graal's VM (as detailed in this blog post from GraalVM) but a less performant setup using the stock JDK is also available. From my relatively light research, our use case may not even take advantage of the features provided by Graal's alternate VM anyways, potentially making the choice clearer.
To this point, I don't believe there has been any discussion about moving to newer versions of Java so, again, this may be a non-issue for the foreseeable future. That being said, an alternate JS engine may also be valuable for potential performance gains so this may be a desirable path to take even before migrating to newer versions of Java.
The text was updated successfully, but these errors were encountered: