Permalink
Browse files

Check if all throwables are Java exceptions in interpreted mode (JRUB…

…Y-6641)

This fixes a simple typo in the RuntimeHelpers.isJavaExceptionHandled logic.
  • Loading branch information...
1 parent 0fe664a commit 86230903748877c244ac48fd21c2f53a9e69c9f9 @bbrowning bbrowning committed with May 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/org/jruby/javasupport/util/RuntimeHelpers.java
@@ -1054,7 +1054,7 @@ public static IRubyObject isJavaExceptionHandled(Throwable currentThrowable, IRu
return isExceptionHandled(((RaiseException)currentThrowable).getException(), throwables, context);
} else {
for (int i = 0; i < throwables.length; i++) {
- if (checkJavaException(currentThrowable, throwables[0], context)) {
+ if (checkJavaException(currentThrowable, throwables[i], context)) {
return context.getRuntime().getTrue();
}
}

0 comments on commit 8623090

Please sign in to comment.