Skip to content

Update examples for JavaScript ScriptEngine support #27919

Open
@sbrannen

Description

@sbrannen

Overview

Several existing tests as well as examples in the reference manual refer to Nashorn as the supported ScriptEngine for JavaScript; however, Nashorn is no longer supported since Java 15.

In the interim, GraalVM has superseded Nashorn for JavaScript ScriptEngine support.

Deliverables

  • Update Web MVC and WebFlux examples so that they mention GraalVM JS support instead of Nashorn.
  • Create an example project (location yet to be determined) which verifies that GraalVM can be used as the JavaScript ScriptEngine for use with:
    • StandardScriptFactory
    • ScriptTemplateView
  • Delete all Nashorn-specific tests which are currently disabled anyway (via @DisabledForJreRange(min = JAVA_15))

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)in: webIssues in web modules (web, webmvc, webflux, websocket)type: documentationA documentation task

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions