8072002: The spec on javax.script.Compilable contains a typo and confusing inconsistency
authorsundar
Wed, 20 May 2015 08:58:14 +0530
changeset 30680 ddb6897152bf
parent 30679 a28f774095fc
child 30681 4a3c81f6f384
8072002: The spec on javax.script.Compilable contains a typo and confusing inconsistency Reviewed-by: lagergren, attila
jdk/src/java.scripting/share/classes/javax/script/Compilable.java
--- a/jdk/src/java.scripting/share/classes/javax/script/Compilable.java	Tue May 19 18:33:08 2015 -0700
+++ b/jdk/src/java.scripting/share/classes/javax/script/Compilable.java	Wed May 20 08:58:14 2015 +0530
@@ -42,7 +42,7 @@
      *
      * @param script The source of the script, represented as a <code>String</code>.
      *
-     * @return An subclass of <code>CompiledScript</code> to be executed later using one
+     * @return An instance of a subclass of <code>CompiledScript</code> to be executed later using one
      * of the <code>eval</code> methods of <code>CompiledScript</code>.
      *
      * @throws ScriptException if compilation fails.
@@ -61,7 +61,7 @@
      *
      * @param script The reader from which the script source is obtained.
      *
-     * @return An implementation of <code>CompiledScript</code> to be executed
+     * @return An instance of a subclass of <code>CompiledScript</code> to be executed
      * later using one of its <code>eval</code> methods of <code>CompiledScript</code>.
      *
      * @throws ScriptException if compilation fails.