Thread#raise doesn't actually work
----------------------------------
Key: JRUBY-2642
URL: http://jira.codehaus.org/browse/JRUBY-2642
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.1.2
Environment: OS X 10.5.3, JDK 1.6
Reporter: Kevin Ballard
Assignee: Thomas E Enebo
Using Thread#raise to raise an exception from a worker thread on the main
thread is a complete noop.
{noformat}
require 'thread'
q = Queue.new
Thread.new(Thread.current) do |master|
master.raise "foo"
q.push :foo
end
q.pop
puts "no error"
{noformat}
That code raises the exception under MRI but under JRuby it just prints "no
error"
--
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