RFR: 8355301: Simplify Throwable::printStackTrace by using record [v5]
Shaojin Wen
swen at openjdk.org
Fri Apr 25 14:38:46 UTC 2025
On Thu, 24 Apr 2025 17:36:29 GMT, Shaojin Wen <swen at openjdk.org> wrote:
>> The current Throwable::printStackTrace implementation uses three inner classes PrintStreamOrWriter/WrappedPrintStream/WrappedPrintWriter. We can introduce a static method println to replace these three embedded classes.
>
> Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision:
>
> use interface + record
As discussed above, more than one developer has expressed opposition to this change, and the benefits are not obvious. I plan to close it. I am sorry to take up your time for review.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/24795#issuecomment-2830615786
More information about the core-libs-dev
mailing list