]> source.dussan.org Git - aspectj.git/commitdiff
for AJDT dont store messages - waste of space!
authoraclement <aclement>
Fri, 18 Aug 2006 12:28:31 +0000 (12:28 +0000)
committeraclement <aclement>
Fri, 18 Aug 2006 12:28:31 +0000 (12:28 +0000)
ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java
tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java

index 39baebb94c33750ba4cd043dd9797394c7a2baea..9d54bdd6a3bfd93f214c56b903549e9b77a0290d 100644 (file)
@@ -634,7 +634,7 @@ public class CompilerAdapter {
                 }
                        
                        taskListManager.addSourcelineTask(message);
-                       return super.handleMessage(message); // also store...   
+                       return true;
                }
                
                private boolean handleAbort(IMessage abortMessage) {
index b596bb5f4779af7115bbccfb928759af2d32a1e6..345681de0ef6ce7a7b910431e69283efbc8bfa6d 100644 (file)
@@ -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" +