From cbb6f5a7d50075dbb4482ff1a112463661aafe19 Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Wed, 22 Aug 2012 13:13:54 -0700 Subject: [PATCH] 387718 --- .../ajdt/internal/compiler/problem/AjProblemReporter.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/problem/AjProblemReporter.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/problem/AjProblemReporter.java index 6ce4a5ecc..f43281317 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/problem/AjProblemReporter.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/problem/AjProblemReporter.java @@ -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 itMungers = supertypeToLookAt.getInterTypeMungers(); + for (Iterator 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 -- 2.39.5