From: acolyer Date: Sat, 16 Aug 2003 19:33:15 +0000 (+0000) Subject: Added a call to remove all structure model listeners from previous run to prevent X-Git-Tag: V1_1_1~80 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b22dba1a73ce29e900ccbc140b9e6a983b0b5b9e;p=aspectj.git Added a call to remove all structure model listeners from previous run to prevent structure listener leakage. --- diff --git a/ajde/testsrc/org/aspectj/ajde/AjdeTestCase.java b/ajde/testsrc/org/aspectj/ajde/AjdeTestCase.java index 7f3e2a481..3f4afbb9d 100644 --- a/ajde/testsrc/org/aspectj/ajde/AjdeTestCase.java +++ b/ajde/testsrc/org/aspectj/ajde/AjdeTestCase.java @@ -14,6 +14,9 @@ package org.aspectj.ajde; import java.io.*; + +import org.aspectj.asm.AsmManager; + import junit.framework.TestCase; public class AjdeTestCase extends TestCase { @@ -50,6 +53,9 @@ public class AjdeTestCase extends TestCase { protected void setUp(String testDataPath) throws Exception { currTestDataPath = TEST_DATA_PATH + File.separatorChar + testDataPath; + // AMC - added this next line as a temporary workaround for + // listener leakage in AsmManager induced by the Ajde test suite. + AsmManager.getDefault().removeAllListeners(); ideManager.init(currTestDataPath); super.setUp(); assertTrue(NullIdeManager.getIdeManager().isInitialized());