From 90b4071e6152377e85bd8fd47a9afee08a26c81c Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 13 Aug 2010 15:43:58 +0000 Subject: [PATCH] 322446: parent type munger remembers declaring aspect --- .../src/org/aspectj/weaver/NewParentTypeMunger.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/NewParentTypeMunger.java b/org.aspectj.matcher/src/org/aspectj/weaver/NewParentTypeMunger.java index ebb419f5b..cb3110073 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/NewParentTypeMunger.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/NewParentTypeMunger.java @@ -16,11 +16,13 @@ import java.io.IOException; public class NewParentTypeMunger extends ResolvedTypeMunger { ResolvedType newParent; + ResolvedType declaringType; private boolean isMixin; - public NewParentTypeMunger(ResolvedType newParent) { + public NewParentTypeMunger(ResolvedType newParent, ResolvedType declaringType) { super(Parent, null); this.newParent = newParent; + this.declaringType = declaringType; this.isMixin = false; } @@ -52,6 +54,10 @@ public class NewParentTypeMunger extends ResolvedTypeMunger { return hashCode; } + public ResolvedType getDeclaringType() { + return declaringType; + } + public void setIsMixin(boolean b) { isMixin = true; } -- 2.39.5