diff options
author | wisberg <wisberg> | 2003-05-24 09:27:04 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2003-05-24 09:27:04 +0000 |
commit | 7e3b3f9016cb0ceb3a15bb3fab1669e34b1a0ef1 (patch) | |
tree | 251ee58e6455258b304b09629442d9ab97107309 /testing | |
parent | 39e055caf22f4e277606b3a54f4308cab22da41f (diff) | |
download | aspectj-7e3b3f9016cb0ceb3a15bb3fab1669e34b1a0ef1.tar.gz aspectj-7e3b3f9016cb0ceb3a15bb3fab1669e34b1a0ef1.zip |
awful downcast for AjcTaskCompileCommand - should be remedied after 1.1 with ICommand interface extension
Diffstat (limited to 'testing')
-rw-r--r-- | testing/src/org/aspectj/testing/harness/bridge/Sandbox.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/testing/src/org/aspectj/testing/harness/bridge/Sandbox.java b/testing/src/org/aspectj/testing/harness/bridge/Sandbox.java index 35350ef85..0e1fe9737 100644 --- a/testing/src/org/aspectj/testing/harness/bridge/Sandbox.java +++ b/testing/src/org/aspectj/testing/harness/bridge/Sandbox.java @@ -18,6 +18,7 @@ import java.util.ArrayList; import org.aspectj.bridge.ICommand; import org.aspectj.bridge.IMessage; import org.aspectj.bridge.IMessageHandler; +import org.aspectj.testing.taskdefs.AjcTaskCompileCommand; import org.aspectj.testing.util.Diffs; import org.aspectj.util.FileUtil; import org.aspectj.util.LangUtil; @@ -186,7 +187,10 @@ public class Sandbox { /** When test is completed, clear the compiler to avoid memory leaks */ void clearCommand(AjcTest caller) { LangUtil.throwIaxIfNull(caller, "caller"); - if (null != command) { + if (null != command) { // need to add ICommand.quit() + if (command instanceof AjcTaskCompileCommand) { // XXX urk! + ((AjcTaskCompileCommand) command).quit(); + } command = null; } // also try to clear sandbox/filesystem. |