From a066840ea5b8a2a99209147b001181b04445c7b1 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 29 Jan 2009 21:03:07 +0000 Subject: [PATCH] on delegate change, forget any attached modifications to the reference type --- org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java b/org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java index 9757e441b..f27e48806 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/ReferenceType.java @@ -59,7 +59,7 @@ public class ReferenceType extends ResolvedType { // added to the class during weaving. private ResolvedType[] annotationTypes = null; private AnnotationAJ[] annotations = null; - + // Similarly these are temporary replacements and additions for the superclass and // superinterfaces private ResolvedType newSuperclass; @@ -825,6 +825,7 @@ public class ReferenceType extends ResolvedType { } } clearParameterizationCaches(); + ensureConsistent(); } private void clearParameterizationCaches() { @@ -919,7 +920,6 @@ public class ReferenceType extends ResolvedType { newInterfaces = null; } - public void addParent(ResolvedType newParent) { if (newParent.isClass()) { newSuperclass = newParent; -- 2.39.5