Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Dynamic rescue blocks don't catch Java exceptions #1598
I found that dynamic rescue blocks are unable to catch Java exceptions. The
This is shown by this example:
With any Ruby exception,
I dug around a little in JRuby code and applied the following patch, which does make it work in this particular case:
I'm not familiar enough with JRuby code to be able to say that this correct and complete, though, so please double check!