Author: sebb Date: Tue Mar 24 21:06:18 2009 New Revision: 758020 URL: http://svn.apache.org/viewvc?rev=758020&view=rev Log: Fix bug - default global scope is null according to the spec.
Modified: jakarta/bsf/trunk/bsf3/bsf-api/src/main/java/javax/script/SimpleScriptContext.java Modified: jakarta/bsf/trunk/bsf3/bsf-api/src/main/java/javax/script/SimpleScriptContext.java URL: http://svn.apache.org/viewvc/jakarta/bsf/trunk/bsf3/bsf-api/src/main/java/javax/script/SimpleScriptContext.java?rev=758020&r1=758019&r2=758020&view=diff ============================================================================== --- jakarta/bsf/trunk/bsf3/bsf-api/src/main/java/javax/script/SimpleScriptContext.java (original) +++ jakarta/bsf/trunk/bsf3/bsf-api/src/main/java/javax/script/SimpleScriptContext.java Tue Mar 24 21:06:18 2009 @@ -32,10 +32,16 @@ */ public class SimpleScriptContext implements ScriptContext { - /** namespace of the scope of level GLOBAL_SCOPE */ - protected Bindings globalScope = new SimpleBindings(); + /** + * This is the scope bindings for GLOBAL_SCOPE. + * By default, a null value (which means no global scope) is used. + * */ + protected Bindings globalScope = null; - /** namespace of the scope of level ENGINE_SCOPE */ + /** + * This is the scope bindings for ENGINE_SCOPE . + * By default, a SimpleBindings is used. + */ protected Bindings engineScope = new SimpleBindings(); /** The reader to be used for input from scripts. */ --------------------------------------------------------------------- To unsubscribe, e-mail: bsf-dev-unsubscr...@jakarta.apache.org For additional commands, e-mail: bsf-dev-h...@jakarta.apache.org