mirror of
https://github.com/EsotericSoftware/reflectasm.git
synced 2025-01-15 14:20:29 +08:00
add support searching default methods since Java 8
This commit is contained in:
parent
783c59ad7c
commit
11b0828a07
@ -90,6 +90,9 @@ public abstract class MethodAccess {
|
|||||||
Class nextClass = type;
|
Class nextClass = type;
|
||||||
while (nextClass != Object.class) {
|
while (nextClass != Object.class) {
|
||||||
addDeclaredMethodsToList(nextClass, methods);
|
addDeclaredMethodsToList(nextClass, methods);
|
||||||
|
for (Class nextInterface : nextClass.getInterfaces()) {
|
||||||
|
addDeclaredMethodsToList(nextInterface, methods);
|
||||||
|
}
|
||||||
nextClass = nextClass.getSuperclass();
|
nextClass = nextClass.getSuperclass();
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
|
Loading…
Reference in New Issue
Block a user