Open kmualem opened 5 years ago
There is no need to do anything. If the Nashorn engine is not available anymore the Java-Json-Tools will still work because there is a backup engine called Rhino. It's a simple dependency on the project.
So if you use the validation on Java <=7 or >=12 it still works.
The Nashorn engine has the advantage of being faster and uses less memory. So it is used as long as it is available.
There is also no real alternative for the engine(s).
It is used for ECMAScript compatible regular expression checks.
There is the Rhino engine that has six bugfix releases in the last four years. There is no minor or major release in the pipe. There is Nashorn which was discontinued in late 2018. And there is the GraalVM but that's a whole VM just for a small fraction of a JSON validation. I don't see this happening to add a whole VM as dependency to this project.
Hi guys,
Is there an intention to remove the usage of the Nashorn engine in the near future? There is a warnining in the logs: "Warning: Nashorn engine is planned to be removed from a future JDK release"
Thanks! Kobi.