mirror of
https://github.com/corda/corda.git
synced 2025-01-05 20:54:13 +00:00
fix dumb mistake leading to AIOOBEs in Class.getMethod
This commit is contained in:
parent
56253e3123
commit
d1bdf2f8ef
@ -223,7 +223,7 @@ public final class Class <T> implements Type, AnnotatedElement {
|
||||
for (VMClass c = vmClass; c != null; c = c.super_) {
|
||||
int index = Classes.findMethod(c, name, parameterTypes);
|
||||
if (index >= 0) {
|
||||
return new Method(vmClass.methodTable[index]);
|
||||
return new Method(c.methodTable[index]);
|
||||
}
|
||||
}
|
||||
throw new NoSuchMethodException(name);
|
||||
|
Loading…
Reference in New Issue
Block a user