java threads mismatch with jruby threads in jruby function Thread.list
----------------------------------------------------------------------

                 Key: JRUBY-4307
                 URL: http://jira.codehaus.org/browse/JRUBY-4307
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.4
         Environment: glassfisch prelude V3, jruby 1.4, rails 2.3.4 mac 10.6 & 
opensolaris
            Reporter: jason franklin-stokes


1. java thread executes jruby code.
2. jruby code uses:
       thread_current_object_id = Thread.current.object_id
       Thread.list.find {|thread| thread.object_id == thread_current_object_id 
} 

result
------
No thread found. 

observation
------------
jruby Thread.list does show the java thread that invoked the jruby code, but it 
has a different object_id as the thread that jruby identifies as being 
Thread.current


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