< prev index next >

src/java.base/share/classes/java/lang/Throwable.java

Print this page

        

@@ -691,11 +691,11 @@
                                          String caption,
                                          String prefix,
                                          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
             StackTraceElement[] trace = getOurStackTrace();
             int m = trace.length - 1;
< prev index next >