add support searching default methods since Java 8

This commit is contained in:
“13228110660” 2022-02-22 15:43:54 +08:00
parent 783c59ad7c
commit 11b0828a07

View File

@ -90,6 +90,9 @@ public abstract class MethodAccess {
Class nextClass = type;
while (nextClass != Object.class) {
addDeclaredMethodsToList(nextClass, methods);
for (Class nextInterface : nextClass.getInterfaces()) {
addDeclaredMethodsToList(nextInterface, methods);
}
nextClass = nextClass.getSuperclass();
}
} else