Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1668

Unlisted breaking change in behaviour of MethodUtils#getMatchingMethod

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 3.12.0
    • 3.13.0
    • lang.reflect.*

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            LukasW Lukas Wulff
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m