Ticket #707 (closed defect: fixed)
raising an exception inside a rescue raises the rescued exception instead of the new exception
| Reported by: | thilo@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | blocker | Milestone: | MacRuby 0.7 |
| Component: | MacRuby | Keywords: | |
| Cc: |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.

