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

Volkan Yazici vyazici at openjdk.org
Fri Jun 6 08:09:00 UTC 2025


On Fri, 6 Jun 2025 07:21:59 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> Okay, but I'm still puzzled as to why the tests were changed as they don't ready from the console.

@AlanBateman, I only skipped the practice of passing `stdin.encoding` to `InputStreamReader`/`Scanner` ctors whenever it is obvious that the `System.in` referred there is not the console. Do you imply I was mistaken while assessing `BindServer` and `attach010Agent00`? If so, which ones, and [to learn what I missed] why? I can create a follow-up ticket+PR to amend them.

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

PR Comment: https://git.openjdk.org/jdk/pull/25542#issuecomment-2948435515


More information about the serviceability-dev mailing list