Sfoglia il codice sorgente

Fix for 44155: TODO tasks miscategorized as warnings (fixed by Andrew Huff)

tags/PRE_ANDY
aclement 19 anni fa
parent
commit
8e1a6c6abc

+ 10
- 1
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/EclipseAdapterUtils.java Vedi File

@@ -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,

+ 4
- 0
testing/src/org/aspectj/testing/xml/SoftMessage.java Vedi File

@@ -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() {

Loading…
Annulla
Salva