From: aclement Date: Thu, 5 Mar 2009 22:54:08 +0000 (+0000) Subject: declareMixin X-Git-Tag: pre268419~27 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4c97a01e0f928e83f80f6aa961afd4a9e1ec74b4;p=aspectj.git declareMixin --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java index a467c1f6f..0bca3ad26 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java @@ -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); + } } }