RFR: 8355301: Simplify Throwable::printStackTrace by replacing inner class with static method [v4]

Joe Darcy darcy at openjdk.org
Fri Apr 25 00:55:45 UTC 2025


On Fri, 25 Apr 2025 00:34:39 GMT, Shaojin Wen <swen at openjdk.org> wrote:

>> Again, what goal is this PR trying to accomplish?
>
> The goal of this PR is to simplify the code by using new language features.

To what end?

- "I was reading Throwable and noticed this possible refactoring."
- "I've run an analysis of the JDK code base and this is the first of N patches to move to using private records."
- "With this change, metric X is Y% better."

Something else?

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/24795#discussion_r2059415698


More information about the core-libs-dev mailing list