From e7bbceef4552aa06c1eb75928a6274e1718b50bf Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 12 Jan 2009 20:26:02 +0000 Subject: [PATCH] 260384: testcode and fix: better hierarchy search --- .../src/org/aspectj/weaver/ResolvedType.java | 44 ++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) 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