From: aclement Date: Mon, 12 Jan 2009 20:26:02 +0000 (+0000) Subject: 260384: testcode and fix: better hierarchy search X-Git-Tag: pre268419~228 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e7bbceef4552aa06c1eb75928a6274e1718b50bf;p=aspectj.git 260384: testcode and fix: better hierarchy search --- diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java b/org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java index 266f829aa..118a1dc63 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/ResolvedType.java @@ -333,9 +333,50 @@ public abstract class ResolvedType extends UnresolvedType implements AnnotatedEl /** * described in JVM spec 2ed 5.4.3.3. Doesnt check ITDs. + * + *

+ * Check the current type for the method. If it is not found, check the super class and any super interfaces. Taking + * care not to process interfaces multiple times. */ public ResolvedMember lookupMethod(Member m) { - return lookupMember(m, getMethods()); + List typesTolookat = new ArrayList(); + typesTolookat.add(this); + int pos = 0; + while (pos