JSR-223 ScriptEngine ignores global bindings
--------------------------------------------

                 Key: JRUBY-4944
                 URL: http://jira.codehaus.org/browse/JRUBY-4944
             Project: JRuby
          Issue Type: Bug
          Components: Embedding
    Affects Versions: JRuby 1.5.1
            Reporter: Michael S. Allman
         Attachments: ScriptEngineGlobalBindingsExample.java

Global variables defined in the script engine's global bindings are not 
accessible.  It doesn't matter if the bindings are set with 
scriptEngineManager.setBindings(globalBindings) or 
scriptEngine.setBindings(globalBindings, ScriptContext.GLOBAL_SCOPE).  In 
either case, the bindings seem to be ignored.

I'm attaching an executable Java class that illustrates this problem.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to