Browse Source

Fix for 44155: TODO tasks miscategorized as warnings

tags/PRE_ANDY
aclement 19 years ago
parent
commit
9dc3f0fefe

+ 5
- 1
bridge/src/org/aspectj/bridge/IMessage.java View File

public static final Kind WEAVEINFO = new Kind("weaveinfo",5); public static final Kind WEAVEINFO = new Kind("weaveinfo",5);
public static final Kind INFO = new Kind("info", 10); public static final Kind INFO = new Kind("info", 10);
public static final Kind DEBUG = new Kind("debug", 20); 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 WARNING = new Kind("warning", 30);
public static final Kind ERROR = new Kind("error", 40); public static final Kind ERROR = new Kind("error", 40);
public static final Kind FAIL = new Kind("fail", 50); public static final Kind FAIL = new Kind("fail", 50);
public static final List KINDS = public static final List KINDS =
Collections.unmodifiableList( Collections.unmodifiableList(
Arrays.asList( 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 */ /** @return non-null String with simple message */
String getMessage(); String getMessage();
/** @return true if the process is aborting */ /** @return true if the process is aborting */
boolean isAbort(); // XXX ambiguous boolean isAbort(); // XXX ambiguous


/** @return true if this is a task tag message */
boolean isTaskTag();
/** @return true if something failed */ /** @return true if something failed */
boolean isFailed(); boolean isFailed();



+ 4
- 0
bridge/src/org/aspectj/bridge/Message.java View File

public boolean isDebug() { public boolean isDebug() {
return kind == IMessage.DEBUG; return kind == IMessage.DEBUG;
} }
public boolean isTaskTag() {
return kind == IMessage.TASKTAG;
}


/** /**
* @return true if kind == IMessage.INFO * @return true if kind == IMessage.INFO

Loading…
Cancel
Save