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
With Java 15 Nashorn was finally removed from the JDK. But with GraalJS there is some sort of replacement.
If the application runs with the polyglot GraalVM there is out of the box support for GraalJS.
Or GraalJS and its ScriptEngine could be simply added as dependency and ran with the JDK.
The text was updated successfully, but these errors were encountered:
JavaScript is single threaded. Rhino and Nashorn haven't cared but GraalJS does. Multi-threaded access to the same context will result in an exception.
One of the recommendations is proper synchronization. And I think I'll go with that. A synchronized access to the GraalJS script engine shall still be faster than multi-threaded Rhino. GraalJS is magnitudes faster than Rhino.
sdoeringNew
added a commit
to sdoeringNew/json-schema-core
that referenced
this issue
Nov 16, 2020
With Java 15 Nashorn was finally removed from the JDK. But with GraalJS there is some sort of replacement.
If the application runs with the polyglot GraalVM there is out of the box support for GraalJS.
Or GraalJS and its ScriptEngine could be simply added as dependency and ran with the JDK.
The text was updated successfully, but these errors were encountered: