JRuby

When an exception is raised from a within a rescue node, the global exception ($!) does not remain set.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JRuby 0.9.2
  • Fix Version/s: JRuby 0.9.8
  • Component/s: None
  • Labels:
    None
  • Environment:
    JRuby 9.2
    Java 6
  • Number of attachments :
    1

Description

Here's a script that demonstrates the error:

at_exit do
unless $!
puts %q{Shouldn't there be an exception}
end
end

begin
raise 'Error stuff'
rescue
raise
end

Activity

Hide
Ryan Bell added a comment -

Here's a patch I have that seems to fix this bug. It also incorporates my fix for bug JRUBY-372 (http://jira.codehaus.org/browse/JRUBY-372).

Show
Ryan Bell added a comment - Here's a patch I have that seems to fix this bug. It also incorporates my fix for bug JRUBY-372 (http://jira.codehaus.org/browse/JRUBY-372).
Hide
Thomas E Enebo added a comment -

Patch applied. Thanks Ryan (commit 2614)

Show
Thomas E Enebo added a comment - Patch applied. Thanks Ryan (commit 2614)

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: