Github user PascalSchumacher commented on a diff in the pull request:

    https://github.com/apache/commons-lang/pull/141#discussion_r65720235
  
    --- Diff: src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java 
---
    @@ -126,13 +149,41 @@ public static Object invokeMethod(final Object 
object, final String methodName,
         /**
          * <p>Invokes a named method whose parameter type matches the object 
type.</p>
          *
    -     * <p>This method delegates the method search to {@link 
#getMatchingAccessibleMethod(Class, String, Class[])}.</p>
    +     * <p>This method supports calls to methods taking primitive 
parameters 
    +     * via passing in wrapping classes. So, for example, a {@code Boolean} 
object
    +     * would match a {@code boolean} primitive.</p>
    +     *
    +     * <p>This is a convenient wrapper for
    +     * {@link #invokeMethod(Object object,String methodName, Object[] 
args, Class[] parameterTypes)}.
    --- End diff --
    
    I guess this should be ``invokeMethod(final Object object, final boolean 
forceAccess, final String methodName, Object[] args, Class[] parameterTypes)`?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to