Merge pull request #151 from dicej/getMethod-aioobe

fix dumb mistake leading to AIOOBEs in Class.getMethod
This commit is contained in:
Joshua Warner 2014-01-03 13:34:52 -08:00
commit 38c6951991

View File

@ -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);