changeset 11205:c361ce24614a

8068462: javax.script.ScriptEngineFactory.getParameter spec is not completely consistent with the rest of the API Reviewed-by: alanb, jlaskey
author sundar
date Tue, 06 Jan 2015 18:22:09 +0530
parents 693d57c7c0ca
children a289cadef417
files src/java.scripting/share/classes/javax/script/ScriptEngineFactory.java
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.scripting/share/classes/javax/script/ScriptEngineFactory.java	Mon Jan 05 23:53:05 2015 +0000
+++ b/src/java.scripting/share/classes/javax/script/ScriptEngineFactory.java	Tue Jan 06 18:22:09 2015 +0530
@@ -104,14 +104,15 @@
      * <ul>
      * <li>ScriptEngine.ENGINE</li>
      * <li>ScriptEngine.ENGINE_VERSION</li>
-     * <li>ScriptEngine.NAME</li>
      * <li>ScriptEngine.LANGUAGE</li>
      * <li>ScriptEngine.LANGUAGE_VERSION</li>
+     * <li>ScriptEngine.NAME</li>
      * </ul>
      * <p>
      * The values for these keys are the Strings returned by <code>getEngineName</code>,
-     * <code>getEngineVersion</code>, <code>getName</code>, <code>getLanguageName</code> and
-     * <code>getLanguageVersion</code> respectively.<br><br>
+     * <code>getEngineVersion</code>, <code>getLanguageName</code>,
+     * <code>getLanguageVersion</code> for the first four keys respectively. For NAME, one of the Strings
+     * returned by <code>getNames</code> is returned.<br><br>
      * A reserved key, <code><b>THREADING</b></code>, whose value describes the behavior of the engine
      * with respect to concurrent execution of scripts and maintenance of state is also defined.
      * These values for the <code><b>THREADING</b></code> key are:<br><br>