I am using a library to evaluate a boolean expression as a string. With the library I get the following warning with Java 11:
NashornScriptEngineFactory in jdk.nashorn.api.scripting has been deprecated and marked for removal
However, I am a little unclear about this. I am using the following code and I don't see Nashorn referenced in this code but yet the warning still persists.
ScriptEngineManager factory = new ScriptEngineManager();
ScriptEngine engine = factory.getEngineByName("JavaScript");
Boolean val = (Boolean) engine.eval(ruleString);
My question is does this warning still apply to this piece of code? Also, if it does, is there another alternative that I can use?
Thanks in advance for the help.