mirror of
https://github.com/corda/corda.git
synced 2025-01-22 12:28:11 +00:00
use StackTraceElement.toString in Throwable.printStackTrace
This commit is contained in:
parent
819588546e
commit
24d0ea0d9b
@ -101,21 +101,7 @@ public class Throwable {
|
|||||||
|
|
||||||
StackTraceElement[] trace = resolveTrace();
|
StackTraceElement[] trace = resolveTrace();
|
||||||
for (int i = 0; i < trace.length; ++i) {
|
for (int i = 0; i < trace.length; ++i) {
|
||||||
sb.append(" at ")
|
sb.append(" at ").append(trace[i].toString()).append(nl);
|
||||||
.append(trace[i].getClassName())
|
|
||||||
.append(".")
|
|
||||||
.append(trace[i].getMethodName());
|
|
||||||
|
|
||||||
if (trace[i].isNativeMethod()) {
|
|
||||||
sb.append(" (native)");
|
|
||||||
} else {
|
|
||||||
int line = trace[i].getLineNumber();
|
|
||||||
if (line >= 0) {
|
|
||||||
sb.append(" (line ").append(line).append(")");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
sb.append(nl);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cause != null) {
|
if (cause != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user