JDK-8068462 : javax.script.ScriptEngineFactory.getParameter spec is not completely consistent with the rest of the API
  • Type: Bug
  • Component: core-libs
  • Sub-Component: javax.script
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2015-01-05
  • Updated: 2016-06-13
  • Resolved: 2015-01-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u60Fixed 9 b46Fixed
Description
The following specification
http://docs.oracle.com/javase/8/docs/api/javax/script/ScriptEngineFactory.html#getParameter-java.lang.String-
says:
---
Keys for which the value is defined in all implementations are:
ScriptEngine.ENGINE
ScriptEngine.ENGINE_VERSION
ScriptEngine.NAME
ScriptEngine.LANGUAGE
ScriptEngine.LANGUAGE_VERSION
The values for these keys are the Strings returned by getEngineName, getEngineVersion, getName, getLanguageName and getLanguageVersion respectively.
---

This part of the text is not correct regarding getName() method since there is no such method in the current API.

Yet the following method exists:
http://docs.oracle.com/javase/8/docs/api/javax/script/ScriptEngineFactory.html#getNames--