aboutsummaryrefslogtreecommitdiffstats
path: root/ajde
diff options
context:
space:
mode:
authoracolyer <acolyer>2003-08-16 19:33:15 +0000
committeracolyer <acolyer>2003-08-16 19:33:15 +0000
commitb22dba1a73ce29e900ccbc140b9e6a983b0b5b9e (patch)
treef565b559e1c947307a55c07c8e31470e1c98058c /ajde
parent4468c138c94a858f26499deae0168562baf0c484 (diff)
downloadaspectj-b22dba1a73ce29e900ccbc140b9e6a983b0b5b9e.tar.gz
aspectj-b22dba1a73ce29e900ccbc140b9e6a983b0b5b9e.zip
Added a call to remove all structure model listeners from previous run to prevent
structure listener leakage.
Diffstat (limited to 'ajde')
-rw-r--r--ajde/testsrc/org/aspectj/ajde/AjdeTestCase.java6
1 files changed, 6 insertions, 0 deletions
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());