Thread.dumpStack is just a convenient veneer around
Throwable.printStackTrace. However, it is specified
that Throwable.printStackTrace is printed to the standard error stream,
but the destination stream for Thread.dumpStack is unspecified.
It needs to be specified so that programs can redirect it or capture it
reliably. The current implemented destination of the standard error stream
is fine and should be specified.
Throwable.printStackTrace. However, it is specified
that Throwable.printStackTrace is printed to the standard error stream,
but the destination stream for Thread.dumpStack is unspecified.
It needs to be specified so that programs can redirect it or capture it
reliably. The current implemented destination of the standard error stream
is fine and should be specified.