Skip to content

Rhino is initialized - and therefore the lib necessary - even if Nashorn is available #93

Open
@sdoeringNew

Description

@sdoeringNew

In a static initialization block in RegexECMA262Helper.java the available JavaScript engines are initialized. Javas Nashorn engine is pretty straight forward and can be used easily. That's the primary script engine which is always used if Java 8 - 14 is used.

However the backup engine Rhino is also initialized thus making it impossible to remove the Rhino lib from every application that uses the json-schema-core although it is unused during the whole runtime. 😞

Why not just initialize Rhino if Nashorn is not available?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions