Thread#[] bug
-------------
Key: JRUBY-1690
URL: http://jira.codehaus.org/browse/JRUBY-1690
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1b1
Environment: ruby 1.8.5 (2007-12-08 rev 5128) [i386-jruby1.1b1], OS X
10.4.11
Reporter: Daniel Berger
This code snippet prints the expected "A" with MRI, but nil with JRuby:
{noformat}
thread = Thread.new{
Thread.current['name'] = 'A'
Thread.stop
}
p thread['name']
{noformat}
--
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