changeset 55526:1de28d191f9c

8226809: Circular reference in printed stack trace is not correctly indented & ambiguous Reviewed-by: bpb
author darcy
date Fri, 28 Jun 2019 18:51:01 -0700
parents c9093341cfe2
children 5ce081828739
files src/java.base/share/classes/java/lang/Throwable.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/Throwable.java	Fri Jun 28 13:02:18 2019 -0700
+++ b/src/java.base/share/classes/java/lang/Throwable.java	Fri Jun 28 18:51:01 2019 -0700
@@ -693,7 +693,7 @@
                                          Set<Throwable> dejaVu) {
         assert Thread.holdsLock(s.lock());
         if (dejaVu.contains(this)) {
-            s.println("\t[CIRCULAR REFERENCE:" + this + "]");
+            s.println(prefix + caption + "[CIRCULAR REFERENCE: " + this + "]");
         } else {
             dejaVu.add(this);
             // Compute number of frames in common between this and enclosing trace