From 216d24980d6d24cf7afe3acf27cfd14bdae0f4f7 Mon Sep 17 00:00:00 2001 From: Athijegannathan Sundararajan Date: Wed, 20 May 2015 08:58:14 +0530 Subject: [PATCH] 8072002: The spec on javax.script.Compilable contains a typo and confusing inconsistency Reviewed-by: lagergren, attila --- .../java.scripting/share/classes/javax/script/Compilable.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jdk/src/java.scripting/share/classes/javax/script/Compilable.java b/jdk/src/java.scripting/share/classes/javax/script/Compilable.java index c4620cb9831..d355167cc49 100644 --- a/jdk/src/java.scripting/share/classes/javax/script/Compilable.java +++ b/jdk/src/java.scripting/share/classes/javax/script/Compilable.java @@ -42,7 +42,7 @@ public interface Compilable { * * @param script The source of the script, represented as a String. * - * @return An subclass of CompiledScript to be executed later using one + * @return An instance of a subclass of CompiledScript to be executed later using one * of the eval methods of CompiledScript. * * @throws ScriptException if compilation fails. @@ -61,7 +61,7 @@ public interface Compilable { * * @param script The reader from which the script source is obtained. * - * @return An implementation of CompiledScript to be executed + * @return An instance of a subclass of CompiledScript to be executed * later using one of its eval methods of CompiledScript. * * @throws ScriptException if compilation fails.