diff --git a/classpath/java/lang/Class.java b/classpath/java/lang/Class.java index 2f9c9a72ee..382fd3b469 100644 --- a/classpath/java/lang/Class.java +++ b/classpath/java/lang/Class.java @@ -223,7 +223,7 @@ public final class Class 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);