Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8202786 JEP 335: Deprecate the Nashorn JavaScript Engine for Removal
  3. JDK-8205932

Release Note: JEP 335: Deprecate the Nashorn JavaScript Engine

XMLWordPrintable

    • generic
    • generic
    • Verified

      Deprecate the Nashorn JavaScript script engine and APIs, and the jjs tool, with the intent to remove them in a future release ([JEP 335](http://openjdk.java.net/jeps/335)).

      The Nashorn JavaScript Engine implementation, the APIs and the `jjs` shell tool have been deprecated and might be removed in a future release. Code that uses classes and interfaces from `jdk.nashorn.api.scripting` and `jdk.nashorn.api.tree` packages will get a deprecation warning from `javac`.

      The Nashorn engine (when used by `javax.script` API or `jrunscript` tool) as well as `jjs` shell tool will print a warning message about deprecation. To disable this runtime warning message, users can include the new Nashorn option, `--no-deprecation-warning`. This might be useful for compatibility scripts that depend on exact output (such as, to avoid the warning breaking their expected exact output).

            jlaskey Jim Laskey
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: