RFR: 8355301: Simplify Throwable::printStackTrace by replacing inner class with static method [v5]
Shaojin Wen
swen at openjdk.org
Thu Apr 24 17:36:29 UTC 2025
> 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
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/24795/files
- new: https://git.openjdk.org/jdk/pull/24795/files/b9050803..fd70d1ad
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=24795&range=04
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=24795&range=03-04
Stats: 61 lines in 1 file changed: 32 ins; 13 del; 16 mod
Patch: https://git.openjdk.org/jdk/pull/24795.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/24795/head:pull/24795
PR: https://git.openjdk.org/jdk/pull/24795
More information about the core-libs-dev
mailing list