Skip to content

Commit

Permalink
Reduce exception-handling in checked funcall and clear $!.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Sep 11, 2014
1 parent f4f1e59 commit 1ad4a59
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/java/org/jruby/RubyClass.java
Expand Up @@ -689,7 +689,9 @@ private static IRubyObject checkFuncallMissing(ThreadContext context, RubyClass
else {
try {
return checkFuncallExec(context, self, method, args);
} catch (Exception e) {
} catch (RaiseException e) {
// clear $!
context.setErrorInfo(context.nil);
return checkFuncallFailed(context, self, method, runtime.getNoMethodError(), args);
}
}
Expand Down

0 comments on commit 1ad4a59

Please sign in to comment.