rhino-script-engine icon indicating copy to clipboard operation
rhino-script-engine copied to clipboard

getEngineByName("rhino") throws an IllegalStateException with Java 8u40

Open sdeleuze opened this issue 9 years ago • 0 comments

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.

sdeleuze avatar Mar 11 '15 09:03 sdeleuze