Issue Type: Bug Bug
Affects Versions: JRuby 1.7.0
Assignee: Unassigned
Components: Core Classes/Modules
Created: 31/Oct/12 5:30 AM
Description:

The try/rescue 'catch-all' definition doesn't catch java Exceptions.

For example in the following example the second catch block catches the error, instead of the general "rescue => e" block.

begin
  java.lang.Integer.parseInt("")
rescue => e
  $stderr.puts "catch all #{e.class}"
rescue java.lang.Throwable => e
  $stderr.puts "java'ish catchall #{e.class}"
end

# prints 
## java'ish catchall Java::JavaLang::NumberFormatException

A workaround seems to be explicitly catch Throwable.

Project: JRuby
Priority: Blocker Blocker
Reporter: Reto Schüttel
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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