local_variables is printing out all variables lexically in scope rather than 
only ones that have been initialized
-----------------------------------------------------------------------------------------------------------------

                 Key: JRUBY-894
                 URL: http://jira.codehaus.org/browse/JRUBY-894
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 0.9.9
            Reporter: Thomas E Enebo
            Assignee: Thomas E Enebo
             Fix For: JRuby 1.0.0


local_variables is printing out all variables lexically in scope rather than 
only ones that have been initialized

This has Thread code in it but it has nothing to do with Threads:
{code}
t = Thread.new do
  p local_variables
  a=0
  b=1
  c=2
end
t.join 
{code}

This should only return ['t'].

-- 
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