From: aclement Date: Sat, 18 Mar 2006 12:03:02 +0000 (+0000) Subject: flush source contexts (128650) X-Git-Tag: V1_5_1_final~36 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fe2c06ff90d63405ced973ec7a21b43e31167fa5;p=aspectj.git flush source contexts (128650) --- diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelObjectType.java b/weaver/src/org/aspectj/weaver/bcel/BcelObjectType.java index 3a8006c30..2bcd7a7d3 100644 --- a/weaver/src/org/aspectj/weaver/bcel/BcelObjectType.java +++ b/weaver/src/org/aspectj/weaver/bcel/BcelObjectType.java @@ -771,6 +771,7 @@ public class BcelObjectType extends AbstractReferenceTypeDelegate { public void weavingCompleted() { hasBeenWoven = true; if (getResolvedTypeX().getWorld().isRunMinimalMemory()) evictWeavingState(); + if (getSourceContext()!=null && !getResolvedTypeX().isAspect()) getSourceContext().tidy(); } // --- methods for testing