Browse Source

move weaving to inside of the compiler.compile loop.

ensure messages are associated with source wherever possible
tags/Root_ajdt_support
acolyer 20 years ago
parent
commit
03abae3c03

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

@@ -42,6 +42,11 @@ public class Message implements IMessage {
location);
}

public Message(String message, ISourceLocation location, boolean isError, ISourceLocation[] extraSourceLocations) {
this(message, "",(isError ? IMessage.ERROR : IMessage.WARNING), location, null,
(extraSourceLocations.length > 0 ? extraSourceLocations : null));
}
/**
* Create a message, handling null values for message and kind
* if thrown is not null.

+ 3
- 1
bridge/src/org/aspectj/bridge/SourceLocation.java View File

@@ -133,9 +133,11 @@ public class SourceLocation implements ISourceLocation, java.io.Serializable {
}
if (sourceFile != ISourceLocation.NO_FILE) {
sb.append(sourceFile.getPath());
}
if (startLine > 0) {
sb.append(":");
sb.append(startLine); //"" + startLine + "-" + endLine);
}
sb.append(startLine); //"" + startLine + "-" + endLine);
if (!noColumn) {
sb.append(":" + column);
}

Loading…
Cancel
Save