]> source.dussan.org Git - aspectj.git/commitdiff
387718
authorAndy Clement <andrew.clement@gmail.com>
Wed, 22 Aug 2012 20:13:54 +0000 (13:13 -0700)
committerAndy Clement <andrew.clement@gmail.com>
Wed, 22 Aug 2012 20:13:54 +0000 (13:13 -0700)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/problem/AjProblemReporter.java

index 6ce4a5ecc9f4f59c5c478b297a43746ec1378fd8..f43281317f07bef1a5e0082d7a48682a201d22eb 100644 (file)
@@ -62,6 +62,7 @@ import org.aspectj.weaver.ConcreteTypeMunger;
 import org.aspectj.weaver.ReferenceType;
 import org.aspectj.weaver.ResolvedMember;
 import org.aspectj.weaver.ResolvedType;
+import org.aspectj.weaver.ResolvedTypeMunger;
 import org.aspectj.weaver.Shadow;
 import org.aspectj.weaver.UnresolvedType;
 import org.aspectj.weaver.patterns.DeclareAnnotation;
@@ -372,9 +373,12 @@ public class AjProblemReporter extends ProblemReporter {
                // affects other code in the problem reporter that looks through ITDs...
                ResolvedType supertypeToLookAt = onTypeX.getSuperclass();
                while (supertypeToLookAt != null) {
-                       List itMungers = supertypeToLookAt.getInterTypeMungers();
-                       for (Iterator i = itMungers.iterator(); i.hasNext();) {
+                       List<ConcreteTypeMunger> itMungers = supertypeToLookAt.getInterTypeMungers();
+                       for (Iterator<ConcreteTypeMunger> i = itMungers.iterator(); i.hasNext();) {
                                ConcreteTypeMunger m = (ConcreteTypeMunger) i.next();
+                               if (m.getMunger()!=null && m.getMunger().getKind()== ResolvedTypeMunger.PrivilegedAccess) {
+                                       continue;
+                               }
                                ResolvedMember sig = m.getSignature();
                                if (sig == null)
                                        continue; // we aren't interested in other kinds of munger