Print line numbers correctly for native and unknown source

This commit is contained in:
Eric Scharff 2007-10-25 17:57:56 -06:00
parent 74701b0790
commit 25275933ce

View File

@ -93,7 +93,14 @@ public class Logger {
sb.append(elt.getMethodName());
sb.append("(line");
sb.append(':');
sb.append(elt.getLineNumber());
int lineNumber = elt.getLineNumber();
if (lineNumber == -2) {
sb.append("unknown");
} else if (lineNumber == -1) {
sb.append("native");
} else {
sb.append(lineNumber);
}
sb.append(')');
sb.append('\n');
}