RFR: 8289400: Improve com/sun/jdi/TestScaffold error reporting [v2]
Chris Plummer
cjplummer at openjdk.org
Fri Sep 2 06:17:43 UTC 2022
On Fri, 2 Sep 2022 05:40:38 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Chris Plummer has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Add curly braces.
>
> test/jdk/com/sun/jdi/TestScaffold.java line 459:
>
>> 457: for (StackTraceElement traceElement : trace) {
>> 458: System.err.println("\tat " + traceElement);
>> 459: }
>
> Thread.dumpStack() prints to System.errr.
But it does so by creating an Exception and calling printStackTrace() on it. I didn't want that because it includes the Exception itself in the output, not just the stack trace.
-------------
PR: https://git.openjdk.org/jdk/pull/10127
More information about the serviceability-dev
mailing list