SeasonPanPan opened a new pull request, #1033:
URL: https://github.com/apache/commons-lang/pull/1033

   JIRA: 
[https://issues.apache.org/jira/browse/LANG-1694](https://issues.apache.org/jira/browse/LANG-1694)
   
   MethodUtils.getMatchingMethod() fails with "Found multiple candidates for 
method" message if the method is **an override of an abstract method** and 
parameter types do not exactly match the declared types.
   
   The behavior of this method has changed between versions 3.11 and 3.12.0. 
Previously, the method would pick the first method that matches the signature 
and replace it only if a method with a more specific signature is found. Maybe 
it's a compatibility issue.
   
   Fix: Keep only one candidate to return directly, if there are more than two 
candidates, continue to compare whether the declaration classes of the first 
two methods are the same, if not, also consider the first method the best 
match(Class itself).
   


-- 
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