getEngineByName("rhino") throws an IllegalStateException with Java 8u40
Opened this issue · 0 comments
sdeleuze commented
I am not sure why but at least with Java 8u40 + latest 1.1.1 rhino-script-engine, calling
ScriptEngine scriptEngine = ScriptEngineManager().getEngineByName("rhino");
throw a java.lang.IllegalStateException: No engine "rhino" found
.
The strange thing is that when I list script engines with new ScriptEngineManager().getEngineFactories()
Rhino is detected:
ScriptEngineFactory Info
Script Engine: Mozilla Rhino (1.7 release 5 PRERELEASE)
Engine Alias: js
Engine Alias: rhino
Engine Alias: rhino17R5
Engine Alias: JavaScript
Engine Alias: javascript
Engine Alias: ECMAScript
Engine Alias: ecmascript
Language: ECMAScript (1.8)
Any idea of what is the issue ?
For your information, I would like to use rhino-script-engine in Spring Framework tests related to this issue.