You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Lukas Wulff (Jira)" <ji...@apache.org> on 2021/08/18 14:40:00 UTC

[jira] [Created] (LANG-1668) Unlisted breaking change in behaviour of MethodUtils#getMatchingMethod

Lukas Wulff created LANG-1668:
---------------------------------

             Summary: Unlisted breaking change in behaviour of MethodUtils#getMatchingMethod
                 Key: LANG-1668
                 URL: https://issues.apache.org/jira/browse/LANG-1668
             Project: Commons Lang
          Issue Type: Bug
          Components: lang.reflect.*
    Affects Versions: 3.12.0
            Reporter: Lukas Wulff


After upgrading from 3.11 to 3.12 some Unit Tests of mine were failing.
I tracked this back to an undocumented change in lang3:

MethodUtils#getMatchingMethod is behaving differently.

Previously, it returned the closest match when no exact match could be found.

Now, it throws an IllegalStateException when there is no unique result.

It would have saved me some time if this had been noted in the change notes.
Not quite sure where to bring this up or whether this qualifies as a bug, but I hope I'm helping by mentioning it here.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)