summaryrefslogtreecommitdiffstats
path: root/bridge/src
diff options
context:
space:
mode:
authoraclement <aclement>2005-05-05 10:36:02 +0000
committeraclement <aclement>2005-05-05 10:36:02 +0000
commit9dc3f0fefe1784d02b1f3641ebc7104a2c2ec5a4 (patch)
tree74dfa9f8661614f4d50114c84a73f91658063a3e /bridge/src
parent39f2271dce4c5f40df42ad2db67a742d9f5be39d (diff)
downloadaspectj-9dc3f0fefe1784d02b1f3641ebc7104a2c2ec5a4.tar.gz
aspectj-9dc3f0fefe1784d02b1f3641ebc7104a2c2ec5a4.zip
Fix for 44155: TODO tasks miscategorized as warnings
Diffstat (limited to 'bridge/src')
-rw-r--r--bridge/src/org/aspectj/bridge/IMessage.java6
-rw-r--r--bridge/src/org/aspectj/bridge/Message.java4
2 files changed, 9 insertions, 1 deletions
diff --git a/bridge/src/org/aspectj/bridge/IMessage.java b/bridge/src/org/aspectj/bridge/IMessage.java
index b6050224e..ebcec9cf6 100644
--- a/bridge/src/org/aspectj/bridge/IMessage.java
+++ b/bridge/src/org/aspectj/bridge/IMessage.java
@@ -30,6 +30,7 @@ public interface IMessage {
public static final Kind WEAVEINFO = new Kind("weaveinfo",5);
public static final Kind INFO = new Kind("info", 10);
public static final Kind DEBUG = new Kind("debug", 20);
+ public static final Kind TASKTAG = new Kind("task",25); // represents a 'TODO' from eclipse - producted by the compiler and consumed by AJDT
public static final Kind WARNING = new Kind("warning", 30);
public static final Kind ERROR = new Kind("error", 40);
public static final Kind FAIL = new Kind("fail", 50);
@@ -44,7 +45,7 @@ public interface IMessage {
public static final List KINDS =
Collections.unmodifiableList(
Arrays.asList(
- new Kind[] { WEAVEINFO, INFO, DEBUG, WARNING, ERROR, FAIL, ABORT }));
+ new Kind[] { WEAVEINFO, INFO, DEBUG, TASKTAG, WARNING, ERROR, FAIL, ABORT }));
/** @return non-null String with simple message */
String getMessage();
@@ -67,6 +68,9 @@ public interface IMessage {
/** @return true if the process is aborting */
boolean isAbort(); // XXX ambiguous
+ /** @return true if this is a task tag message */
+ boolean isTaskTag();
+
/** @return true if something failed */
boolean isFailed();
diff --git a/bridge/src/org/aspectj/bridge/Message.java b/bridge/src/org/aspectj/bridge/Message.java
index 610bc9058..8d69e3a5f 100644
--- a/bridge/src/org/aspectj/bridge/Message.java
+++ b/bridge/src/org/aspectj/bridge/Message.java
@@ -129,6 +129,10 @@ public class Message implements IMessage {
public boolean isDebug() {
return kind == IMessage.DEBUG;
}
+
+ public boolean isTaskTag() {
+ return kind == IMessage.TASKTAG;
+ }
/**
* @return true if kind == IMessage.INFO