Navigation Menu

Skip to content

Commit

Permalink
corrected error in printing caller stack
Browse files Browse the repository at this point in the history
  • Loading branch information
adinn committed Dec 2, 2009
1 parent 4680c20 commit 56e2ce0
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -213,7 +213,11 @@ public void traceRun(Runnable runnable, Object key)
StackTraceElement[] stack = Thread.currentThread().getStackTrace();

buffer.append(" from ");
printlnFrame(buffer, i);
if (i < l - 1) {
printlnFrame(buffer, i + 1);
} else {
buffer.append(" VM runtime\n");
}
trace(key, buffer.toString());
}
}

0 comments on commit 56e2ce0

Please sign in to comment.