Skip to content

Commit

Permalink
Provide more useful NoSuchMethodHandlerExceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Janmm14 committed Jul 7, 2021
1 parent bf3c7da commit e45a902
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,7 @@ else if(obj instanceof JavaObject)
break;
}
} else {
throw new NoSuchMethodHandlerException("Could not find invoker for " + args.get(args.size() - 1).type() + " " + cast.name + cast.desc).setThrownFromInvoke(true);
throw new NoSuchMethodHandlerException("Could not find invoker for " + args.get(args.size() - 1).type() + " " + cast.owner + " " + cast.name + cast.desc).setThrownFromInvoke(true);
}
break;
} catch (NoSuchMethodHandlerException | IllegalArgumentException t) {
Expand Down Expand Up @@ -1573,7 +1573,7 @@ else if(obj instanceof JavaObject)
break;
}
}else {
throw new NoSuchMethodHandlerException("Could not find invoker for " + args.get(args.size() - 1).type() + " " + cast.name + cast.desc).setThrownFromInvoke(true);
throw new NoSuchMethodHandlerException("Could not find invoker for " + args.get(args.size() - 1).type() + " " + cast.owner + " " + cast.name + cast.desc).setThrownFromInvoke(true);
}
break;
}
Expand Down

0 comments on commit e45a902

Please sign in to comment.