From ae2c1d7e25dbacbfe10374bb02caa9d0ae47642a Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 28 May 2010 20:51:43 +0000 Subject: [PATCH] 314840: test and fix --- org.aspectj.matcher/src/org/aspectj/weaver/Advice.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/Advice.java b/org.aspectj.matcher/src/org/aspectj/weaver/Advice.java index b9e704dae..5f3f915ca 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/Advice.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/Advice.java @@ -27,6 +27,7 @@ public abstract class Advice extends ShadowMunger { protected AjAttribute.AdviceAttribute attribute; protected transient AdviceKind kind; // alias for attribute.getKind() protected Member signature; + private boolean isAnnotationStyle; // not necessarily declaring aspect, this is a semantics change from 1.0 protected ResolvedType concreteAspect; // null until after concretize @@ -93,6 +94,7 @@ public abstract class Advice extends ShadowMunger { public Advice(AjAttribute.AdviceAttribute attribute, Pointcut pointcut, Member signature) { super(pointcut, attribute.getStart(), attribute.getEnd(), attribute.getSourceContext(), ShadowMungerAdvice); this.attribute = attribute; + this.isAnnotationStyle = signature != null && !signature.getName().startsWith("ajc$"); this.kind = attribute.getKind(); // alias this.signature = signature; if (signature != null) { @@ -478,6 +480,10 @@ public abstract class Advice extends ShadowMunger { start = lexicalPosition; } + public boolean isAnnotationStyle() { + return isAnnotationStyle; + } + public ResolvedType getConcreteAspect() { return concreteAspect; } -- 2.39.5