Return-Path: Delivered-To: apmail-jakarta-bsf-dev-archive@www.apache.org Received: (qmail 14864 invoked from network); 24 Mar 2009 23:38:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Mar 2009 23:38:47 -0000 Received: (qmail 94030 invoked by uid 500); 24 Mar 2009 23:38:47 -0000 Delivered-To: apmail-jakarta-bsf-dev-archive@jakarta.apache.org Received: (qmail 93964 invoked by uid 500); 24 Mar 2009 23:38:46 -0000 Mailing-List: contact bsf-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Bean Scripting Framework developers" Reply-To: "Bean Scripting Framework developers" Delivered-To: mailing list bsf-dev@jakarta.apache.org Received: (qmail 1034 invoked by uid 500); 24 Mar 2009 21:06:42 -0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r758020 - /jakarta/bsf/trunk/bsf3/bsf-api/src/main/java/javax/script/SimpleScriptContext.java Date: Tue, 24 Mar 2009 21:06:19 -0000 To: bsf-cvs@jakarta.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090324210619.6C7B42388995@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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-unsubscribe@jakarta.apache.org For additional commands, e-mail: bsf-dev-help@jakarta.apache.org