From: aclement Date: Mon, 8 Jan 2007 15:45:40 +0000 (+0000) Subject: test and fix for 169706: inherited annotations down a hierarchy greater than 2 deep X-Git-Tag: Root_extensions~61 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=616672d6f7b71a5cfbff20ec698c3d812dd7fc4a;p=aspectj.git test and fix for 169706: inherited annotations down a hierarchy greater than 2 deep --- diff --git a/weaver/src/org/aspectj/weaver/ResolvedType.java b/weaver/src/org/aspectj/weaver/ResolvedType.java index a9e52a14a..be05dd0a7 100644 --- a/weaver/src/org/aspectj/weaver/ResolvedType.java +++ b/weaver/src/org/aspectj/weaver/ResolvedType.java @@ -1054,8 +1054,9 @@ public abstract class ResolvedType extends UnresolvedType implements AnnotatedEl if (ret != null) return ret; ResolvedType supert = getSuperclass(); - if (supert != null) { + while (ret==null && supert!=null) { ret = supert.lookupMemberNoSupers(member); + if (ret==null) supert = supert.getSuperclass(); } return ret;