RFR: 8357993: Use "stdin.encoding" for reading System.in with InputStreamReader/Scanner [hotspot] [v2]

Volkan Yazici vyazici at openjdk.org
Mon Jun 2 19:41:52 UTC 2025


On Mon, 2 Jun 2025 19:00:23 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

> Why in some cases are you special casing the the default charset as you do here, but in other cases you are not?

@plummercj, as requested in the parent ticket (i.e., [JDK-8356893](https://bugs.openjdk.org/browse/JDK-8356893)), I added a fallback, except for tests. AFAICT, if `stdin.encoding` is either missing or contains an invalid value in a test, we ideally should fail the test.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25542#discussion_r2122007106


More information about the serviceability-dev mailing list