RFR: 8342936: Enhance java.io.IO with parameter-less println() and readln() [v3]

vulinh64 duke at openjdk.org
Tue Nov 5 09:52:30 UTC 2024


On Tue, 29 Oct 2024 08:13:22 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:

>> This PR is simply adding parameter-less `java.io.IO.{println(),readln()}`, with the (hopefully) obvious semantics, plus the corresponding wiring to make those work. This may become part of JEP 495:
>> https://openjdk.org/jeps/495
>
> Jan Lahoda has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Fixing test for Console.readln/readLine, ensuring the proper methods are called.

My question (please don't bash me, I am new): Any chance we can set the encoding of console? I tested on Java 23 and the encoding is `windows-1252` so it will not display unicode characters correctly.

![image](https://github.com/user-attachments/assets/cd4cb1a7-8dec-4bb7-ae76-121f3a9369b0)

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

PR Comment: https://git.openjdk.org/jdk/pull/21693#issuecomment-2456709109


More information about the core-libs-dev mailing list