8072002: The spec on javax.script.Compilable contains a typo and confusing inconsistency

Reviewed-by: lagergren, attila
This commit is contained in:
Athijegannathan Sundararajan 2015-05-20 08:58:14 +05:30
parent 8931c0d3b2
commit 216d24980d

@ -42,7 +42,7 @@ public interface Compilable {
*
* @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 @@ public interface Compilable {
*
* @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.