[
https://issues.apache.org/jira/browse/LANG-1754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary D. Gregory resolved LANG-1754.
-----------------------------------
Fix Version/s: 3.18.0
Resolution: Fixed
> MethodUtils.getMatchingMethod fails to see default methods of an interface of
> a class
> -------------------------------------------------------------------------------------
>
> Key: LANG-1754
> URL: https://issues.apache.org/jira/browse/LANG-1754
> Project: Commons Lang
> Issue Type: Bug
> Components: lang.reflect.*
> Affects Versions: 3.17.0
> Reporter: Václav Haisman
> Priority: Major
> Labels: default-methods
> Fix For: 3.18.0
>
>
> When using {{MethodUtils.getMatchingMethod(AClass.class, "test")}} with code
> like
> {code:java}
> interface TestInterface {
> default void test() { }
> }
> class AClass implements TestInterface {
> }
> {code}
> The returned value is {{null}} because it does not look into interfaces.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)