Issue Type: Bug Bug
Affects Versions: JRuby 1.7.0.pre2, JRuby 1.6.7
Assignee: Thomas E Enebo
Created: 19/Sep/12 9:48 AM
Description:

The following program works differently under MRI and JRuby

timeout = nil
t=Thread.new do
sleep 10
end
start = Time.now
s = t.join(timeout)
#Workaround: s = timeout ? t.join(timeout) : t.join
puts "Took #{Time.now-start} seconds and returned #{s.inspect}"

JRuby: Took 0.0 seconds and returned nil
MRI: Took 10.000633 seconds and returned #<Thread:0x007fb14884f3b8 dead>

Project: JRuby
Priority: Trivial Trivial
Reporter: Brad Pardee
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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