]> source.dussan.org Git - aspectj.git/commitdiff
test and fix for 169706: inherited annotations down a hierarchy greater than 2 deep
authoraclement <aclement>
Mon, 8 Jan 2007 15:45:40 +0000 (15:45 +0000)
committeraclement <aclement>
Mon, 8 Jan 2007 15:45:40 +0000 (15:45 +0000)
weaver/src/org/aspectj/weaver/ResolvedType.java

index a9e52a14a5252902c7da293eec1c073843f4eeb3..be05dd0a7c662cb73fc296f0b3e45478119f1035 100644 (file)
@@ -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;