summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authoracolyer <acolyer>2003-02-25 17:04:49 +0000
committeracolyer <acolyer>2003-02-25 17:04:49 +0000
commitd3594da1235d686a6692074702cc1632235dae13 (patch)
treec20b090d74638184598d790c6ff17eac27b50e15 /bridge
parentc1a978da9f01913600c73fd0f60e51f901ea7655 (diff)
downloadaspectj-d3594da1235d686a6692074702cc1632235dae13.tar.gz
aspectj-d3594da1235d686a6692074702cc1632235dae13.zip
Bug 33011. getEndLine() was returning the start line.
Diffstat (limited to 'bridge')
-rw-r--r--bridge/src/org/aspectj/bridge/SourceLocation.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/bridge/src/org/aspectj/bridge/SourceLocation.java b/bridge/src/org/aspectj/bridge/SourceLocation.java
index 5579082b6..9c8ebab3b 100644
--- a/bridge/src/org/aspectj/bridge/SourceLocation.java
+++ b/bridge/src/org/aspectj/bridge/SourceLocation.java
@@ -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);
}