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

MethodUtils.getMatchingMethod fails to see default methods of an interface of a class

    XMLWordPrintableJSON

Details

    Description

      When using MethodUtils.getMatchingMethod(AClass.class, "test") with code like

      interface TestInterface {
        default void test() { }
      }
      
      class AClass implements TestInterface {
      }
      

      The returned value is null because it does not look into interfaces.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wilx Václav Haisman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: