Skip to content

Commit

Permalink
Fixes usage of ReflectionUtils that can't access method; fixes gh-2267
Browse files Browse the repository at this point in the history
  • Loading branch information
marcingrzejszczak committed Mar 8, 2023
1 parent 5cd21ca commit 5cedfb4
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ private <T> Object callMethodOnWrappedObject(ProceedingJoinPoint pjp, T target)
if (log.isDebugEnabled()) {
log.debug("Found a corresponding method on the trace representation [" + method + "]");
}
return ReflectionUtils.invokeMethod(method, target, pjp.getArgs());
try {
return method.invoke(target, pjp.getArgs());
}
catch (Exception ex) {
ReflectionUtils.handleReflectionException(ex);
}
}
if (log.isDebugEnabled()) {
log.debug("Method [" + pjp.getSignature().getName()
Expand Down

0 comments on commit 5cedfb4

Please sign in to comment.