8068462: javax.script.ScriptEngineFactory.getParameter spec is not completely consistent with the rest of the API
authorsundar
Tue, 06 Jan 2015 18:22:09 +0530
changeset 28296 7610e2b3018c
parent 28295 f45d65db7a17
child 28297 8026b261bfdb
8068462: javax.script.ScriptEngineFactory.getParameter spec is not completely consistent with the rest of the API Reviewed-by: alanb, jlaskey
jdk/src/java.scripting/share/classes/javax/script/ScriptEngineFactory.java
--- a/jdk/src/java.scripting/share/classes/javax/script/ScriptEngineFactory.java	Mon Jan 05 23:53:05 2015 +0000
+++ b/jdk/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>