Skip to content
This repository was archived by the owner on Sep 29, 2020. It is now read-only.
This repository was archived by the owner on Sep 29, 2020. It is now read-only.

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

@sdeleuze

Description

@sdeleuze

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions