RFR: 8274367: Re-indent stack-trace examples for Throwable.printStackTrace
darcy at openjdk.java.net
Mon Sep 27 21:39:59 UTC 2021
On Mon, 27 Sep 2021 12:04:48 GMT, Pavel Rappo <prappo at openjdk.org> wrote:
> This PR fixes indentation in the examples in the doc comment for java.lang.Throwable#printStackTrace().
> 1. Indentation in stack-trace output is significant. The cause of an exception is output on the same level of indentation as that of the exception. A suppressed exception is output at a deeper level of indentation than that of the containing exception. The last example for Throwable.printStackTrace violates this.
> 2. Indentation in examples for Throwable.printStackTrace that relate to suppressed exceptions is inconsistent with that of cause exceptions.
Marked as reviewed by darcy (Reviewer).
More information about the core-libs-dev