Browse Source

Bug 33011. getEndLine() was returning the start line.

tags/V_1_1_b5
acolyer 21 years ago
parent
commit
d3594da123
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      bridge/src/org/aspectj/bridge/SourceLocation.java

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

@@ -52,7 +52,7 @@ public class SourceLocation implements ISourceLocation, java.io.Serializable {
}

private final File sourceFile;
private final int line;
private final int startLine;
private final int column;
private final int endLine;
private boolean noColumn;
@@ -89,7 +89,7 @@ public class SourceLocation implements ISourceLocation, java.io.Serializable {
LangUtil.throwIaxIfFalse(line <= endLine , line + " > " + endLine);
LangUtil.throwIaxIfFalse(column >= 0, "negative column: " + column);
this.sourceFile = file;
this.line = line;
this.startLine = line;
this.column = column;
this.endLine = endLine;
}
@@ -98,7 +98,7 @@ public class SourceLocation implements ISourceLocation, java.io.Serializable {
return sourceFile;
}
public int getLine() {
return line;
return startLine;
}
/**
@@ -110,7 +110,7 @@ public class SourceLocation implements ISourceLocation, java.io.Serializable {
}
public int getEndLine() {
return line;
return endLine;
}
/** @return String {file:}line{:column} */
@@ -121,7 +121,7 @@ public class SourceLocation implements ISourceLocation, java.io.Serializable {
sb.append(sourceFile.getPath());
sb.append(":");
}
sb.append("" + line);
sb.append("" + startLine);
if (!noColumn) {
sb.append(":" + column);
}

Loading…
Cancel
Save