jdk/src/java.scripting/share/classes/javax/script/SimpleScriptContext.java
changeset 41554 fc6a35a87a52
parent 30647 58e2d299805b
equal deleted inserted replaced
41553:eb5002231dfa 41554:fc6a35a87a52
   211                 throw new IllegalArgumentException("Illegal scope value.");
   211                 throw new IllegalArgumentException("Illegal scope value.");
   212         }
   212         }
   213     }
   213     }
   214 
   214 
   215     /**
   215     /**
   216      * Sets the value of an attribute in a given scope.
   216      * Sets the value of an attribute in a given scope. If the scope is <code>GLOBAL_SCOPE</code>
       
   217      * and no Bindings is set for <code>GLOBAL_SCOPE</code>, then setAttribute call is a no-op.
   217      *
   218      *
   218      * @param name The name of the attribute to set
   219      * @param name The name of the attribute to set
   219      * @param value The value of the attribute
   220      * @param value The value of the attribute
   220      * @param scope The scope in which to set the attribute
   221      * @param scope The scope in which to set the attribute
   221      *
   222      *