]> source.dussan.org Git - aspectj.git/commitdiff
declareMixin
authoraclement <aclement>
Thu, 5 Mar 2009 22:54:08 +0000 (22:54 +0000)
committeraclement <aclement>
Thu, 5 Mar 2009 22:54:08 +0000 (22:54 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java

index a467c1f6f52a79b4337da6b14f47b48039edff9b..0bca3ad26fe2f2895e7c84a94ae3a18ab5e86e15 100644 (file)
@@ -628,12 +628,14 @@ public class AjLookupEnvironment extends LookupEnvironment implements AnonymousC
                // annotation patterns then they might match later...remember that...
                for (Iterator i = declareParents.iterator(); i.hasNext();) {
                        DeclareParents decp = (DeclareParents) i.next();
-                       boolean didSomething = doDeclareParents(decp, sourceType);
-                       if (didSomething) {
-                               anyNewParents = true;
-                       } else {
-                               if (!decp.getChild().isStarAnnotation())
-                                       decpToRepeat.add(decp);
+                       if (!decp.isMixin()) {
+                               boolean didSomething = doDeclareParents(decp, sourceType);
+                               if (didSomething) {
+                                       anyNewParents = true;
+                               } else {
+                                       if (!decp.getChild().isStarAnnotation())
+                                               decpToRepeat.add(decp);
+                               }
                        }
                }