#707: raising an exception inside a rescue raises the rescued exception instead
of the new exception
---------------------------------------+------------------------------------
 Reporter:  th...@…                    |       Owner:  lsansone...@…        
     Type:  defect                     |      Status:  new                  
 Priority:  blocker                    |   Milestone:                       
Component:  MacRuby                    |    Keywords:                       
---------------------------------------+------------------------------------
 Hi while trying to setup a testsuite with mocha and bacon by using Eloy's
 mocha-on-bacon things fall apart because of the mentioned bug.

 Here some code to reproduce the bug:

 def test_catch_and_raise
   begin
     raise StandardError
   rescue
     raise Exception
   end
 end

 -- macruby 0.6 --
 test_catch_and_raise => StandardError: StandardError
 -- ruby 1.9.1
 test_catch_and_raise => Exception: Exception

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/707>
MacRuby <http://macruby.org/>

_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to