Make sure that Context.getSourcePositionFromStack never returns negative numbers and uses 0 to indicate absence of line information. It accounts for differences between JVMs when dealing with incomplete debug information.

git-svn-id: svn://10.0.0.236/trunk@156952 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
igor%mir2.org
2004-05-26 11:03:03 +00:00
parent c480e3ca9f
commit aaa1dc0d48

View File

@@ -2346,6 +2346,9 @@ public class Context
String lineStr = s.substring(colon + 1, close);
try {
linep[0] = Integer.parseInt(lineStr);
if (linep[0] < 0) {
linep[0] = 0;
}
return fileStr;
}
catch (NumberFormatException e) {