aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2006-08-18 12:28:31 +0000
committeraclement <aclement>2006-08-18 12:28:31 +0000
commit1619a751e2a4a8a38676d5c96697022bdc798710 (patch)
tree5429161c118c159d6d5576ea8617bff4701d165e
parent9a84fe9d3af82b03103c4566a953fc54837db1f9 (diff)
downloadaspectj-1619a751e2a4a8a38676d5c96697022bdc798710.tar.gz
aspectj-1619a751e2a4a8a38676d5c96697022bdc798710.zip
for AJDT dont store messages - waste of space!
-rw-r--r--ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java2
-rw-r--r--tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java7
2 files changed, 7 insertions, 2 deletions
diff --git a/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java b/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java
index 39baebb94..9d54bdd6a 100644
--- a/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java
+++ b/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java
@@ -634,7 +634,7 @@ public class CompilerAdapter {
}
taskListManager.addSourcelineTask(message);
- return super.handleMessage(message); // also store...
+ return true;
}
private boolean handleAbort(IMessage abortMessage) {
diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
index b596bb5f4..345681de0 100644
--- a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
+++ b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
@@ -1462,7 +1462,12 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa
assertTrue("expected the handler to be an IMessageHolder but wasn't ",
handler instanceof IMessageHolder);
IMessage[] msgs = ((IMessageHolder)AjdeManager.getMessageHandler()).getMessages(null,true);
- IMessage msg = msgs[msgs.length-1];
+ assertTrue("There should be no messages but I found: "+msgs.length,msgs.length==0);
+
+ List tasklistMessages = MyTaskListManager.getWarningMessages();
+ assertTrue("Should be one message but found "+tasklistMessages.size(),tasklistMessages.size()==1);
+
+ IMessage msg = (IMessage)tasklistMessages.get(0);
assertTrue("expected message to be a LintMessage but wasn't",
msg instanceof LintMessage);
assertTrue("expected message to be noGuardForLazyTjp xlint message but" +