apupier commented on code in PR #18682:
URL: https://github.com/apache/camel/pull/18682#discussion_r2222494969


##########
core/camel-support/src/main/java/org/apache/camel/support/ObjectHelper.java:
##########
@@ -478,7 +478,7 @@ public static Object invokeMethod(Method method, Object 
instance, Object... para
     public static Object invokeMethodSafe(Method method, Object instance, 
Object... parameters)
             throws InvocationTargetException, IllegalAccessException {
         Object answer;
-        if (!method.isAccessible()) {
+        if (!method.canAccess(instance)) {

Review Comment:
   see https://github.com/apache/camel/pull/18683



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to