mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8226809: Circular reference in printed stack trace is not correctly indented & ambiguous
Reviewed-by: bpb
This commit is contained in:
parent
4d1ff6a295
commit
d96ed63fd0
1 changed files with 1 additions and 1 deletions
|
@ -693,7 +693,7 @@ public class Throwable implements Serializable {
|
||||||
Set<Throwable> dejaVu) {
|
Set<Throwable> dejaVu) {
|
||||||
assert Thread.holdsLock(s.lock());
|
assert Thread.holdsLock(s.lock());
|
||||||
if (dejaVu.contains(this)) {
|
if (dejaVu.contains(this)) {
|
||||||
s.println("\t[CIRCULAR REFERENCE:" + this + "]");
|
s.println(prefix + caption + "[CIRCULAR REFERENCE: " + this + "]");
|
||||||
} else {
|
} else {
|
||||||
dejaVu.add(this);
|
dejaVu.add(this);
|
||||||
// Compute number of frames in common between this and enclosing trace
|
// Compute number of frames in common between this and enclosing trace
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue