timeout library should throw an anonymous exception type while unrolling stack
------------------------------------------------------------------------------

                 Key: JRUBY-3820
                 URL: http://jira.codehaus.org/browse/JRUBY-3820
             Project: JRuby
          Issue Type: Bug
          Components: Extensions
            Reporter: Charles Oliver Nutter
             Fix For: JRuby 1.4


This is a sneaky one that probably wouldn't affect anyone unless they were 
capturing Exception or Object or Timeout::ExitException, but it does have a 
strong potential to prevent timeouts from unrolling all the way back to their 
original call.

{noformat}
  def test_timeout_raises_anon_class_to_unroll
    begin
      timeout(0.1) { foo }
    rescue Timeout::Error
      ok = true
    end

    assert ok, "Timeout::Error was not eventually delivered to caller"
    assert @in_foo.class.name == "", "Non-anonymous exception type raised in 
intervening stack"
  end
{noformat}

We do not pass this.

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