From: aclement Date: Thu, 29 Jan 2009 21:03:07 +0000 (+0000) Subject: on delegate change, forget any attached modifications to the reference type X-Git-Tag: pre268419~169 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a066840ea5b8a2a99209147b001181b04445c7b1;p=aspectj.git on delegate change, forget any attached modifications to the reference type --- 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;