< prev index next >
src/java.scripting/share/classes/javax/script/SimpleScriptContext.java
Print this page
@@ -211,11 +211,12 @@
throw new IllegalArgumentException("Illegal scope value.");
}
}
/**
- * Sets the value of an attribute in a given scope.
+ * Sets the value of an attribute in a given scope. If the scope is <code>GLOBAL_SCOPE</code>
+ * and no Bindings is set for <code>GLOBAL_SCOPE</code>, then setAttribute call is a no-op.
*
* @param name The name of the attribute to set
* @param value The value of the attribute
* @param scope The scope in which to set the attribute
*
< prev index next >