On Tue, 27 Jan 2026 10:44:42 GMT, Eirik Bjørsnøs <[email protected]> wrote:
> Please review this PR which removes a dependency on > `java.nio.charset.StandardCharsets` introduced in > [JDK-8365703](https://bugs.openjdk.org/browse/JDK-8365703). > > We can use `UTF_8.INSTANCE` here as elsewhere in this class to prevent > startup regression loading otherwise unused classes and charsets. > > Verified that running `java -cp hello.jar Hello` observes the following diff > in loaded classes when run with this PR: > > > < java.nio.charset.StandardCharsets > < sun.nio.cs.US_ASCII > < sun.nio.cs.ISO_8859_1 > < sun.nio.cs.UTF_16BE > < sun.nio.cs.UTF_16LE > < sun.nio.cs.UTF_16 > < sun.nio.cs.UTF_32BE > < sun.nio.cs.UTF_32LE > < sun.nio.cs.UTF_32 > > > This is a strict refactoring, no tests updated, `noreg-trivial`. This pull request has been closed without being integrated. ------------- PR: https://git.openjdk.org/jdk/pull/29443
