aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2005-05-05 10:36:18 +0000
committeraclement <aclement>2005-05-05 10:36:18 +0000
commit8e1a6c6abcd12073c8f29825235040c2a564a251 (patch)
treefa64cdf39abb932501c9127a6ccf32eff5e4de0a
parent9dc3f0fefe1784d02b1f3641ebc7104a2c2ec5a4 (diff)
downloadaspectj-8e1a6c6abcd12073c8f29825235040c2a564a251.tar.gz
aspectj-8e1a6c6abcd12073c8f29825235040c2a564a251.zip
Fix for 44155: TODO tasks miscategorized as warnings (fixed by Andrew Huff)
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/EclipseAdapterUtils.java11
-rw-r--r--testing/src/org/aspectj/testing/xml/SoftMessage.java4
2 files changed, 14 insertions, 1 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/EclipseAdapterUtils.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/EclipseAdapterUtils.java
index 9a856fbd4..e2c296245 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/EclipseAdapterUtils.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/EclipseAdapterUtils.java
@@ -146,9 +146,18 @@ public class EclipseAdapterUtils {
extraDetails = extraDetails.substring(0,extraDetails.length()-"[deow=true]".length());
}
+ // If the 'problem' represents a TO DO kind of thing then use the message kind that
+ // represents this so AJDT sees it correctly.
+ IMessage.Kind kind;
+ if (problem.getID()==IProblem.Task) {
+ kind=IMessage.TASKTAG;
+ } else {
+ if (problem.isError()) { kind = IMessage.ERROR; }
+ else { kind = IMessage.WARNING; }
+ }
IMessage msg = new Message(problem.getMessage(),
extraDetails,
- problem.isError() ? IMessage.ERROR : IMessage.WARNING,
+ kind,
sourceLocation,
null,
seeAlsoLocations,
diff --git a/testing/src/org/aspectj/testing/xml/SoftMessage.java b/testing/src/org/aspectj/testing/xml/SoftMessage.java
index cec8baf71..d75f9d838 100644
--- a/testing/src/org/aspectj/testing/xml/SoftMessage.java
+++ b/testing/src/org/aspectj/testing/xml/SoftMessage.java
@@ -212,6 +212,10 @@ public class SoftMessage implements IMessage {
public boolean isInfo() {
return kind == IMessage.INFO;
}
+
+ public boolean isTaskTag() {
+ return kind == IMessage.TASKTAG;
+ }
/** @return true if kind == IMessage.ABORT */
public boolean isAbort() {