changeset 10771:b77ce075b357

8072002: The spec on javax.script.Compilable contains a typo and confusing inconsistency Reviewed-by: lagergren, attila
author sundar
date Wed, 20 May 2015 08:58:14 +0530
parents 02ada5401636
children 3ea6198dc9a5
files src/share/classes/javax/script/Compilable.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/script/Compilable.java	Tue May 19 21:52:41 2015 +0100
+++ b/src/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.