Inconsistent DynamicScope instances in evalScriptlet ----------------------------------------------------
Key: JRUBY-3127 URL: http://jira.codehaus.org/browse/JRUBY-3127 Project: JRuby Issue Type: Bug Components: Core Classes/Modules Affects Versions: JRuby 1.1.5 Reporter: Yoko Harada Attachments: Ruby.patch Since JRuby 1.1.5, ManyVarsDynamicScope has been introduced in evalScriptlet and is used to parse scripts. However, implementations of a Node.interpret method remain unchanged and use different instance of DynamicScope from the one used for parsing. This causes the trouble posted in jruby-users ml, http://www.nabble.com/JRuby-1.1.5-%2B-BSF%3A-local-variables-no-longer-persist-between-calls-to-eval%28%29-td20337547.html. To resolve this issue completely, Node.interpret probably should have some way of receiving DynamicScope type instance so that the same DynamicScope instance will be used in both parsing and interpreting. Attached patch is the fix to make parser use the same DynamicScope instance as interpreter. -- 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