From d1bdf2f8ef1ccc6ebba8f8f74b8dc8885ff5ce3c Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Fri, 3 Jan 2014 13:58:37 -0700 Subject: [PATCH] fix dumb mistake leading to AIOOBEs in Class.getMethod --- classpath/java/lang/Class.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);