RFR: 8358552: EndOfFileException in System.in.read() and IO.readln() etc. in JShell [v2]
Jan Lahoda
jlahoda at openjdk.org
Fri Jul 4 15:30:39 UTC 2025
On Fri, 4 Jul 2025 11:05:19 GMT, Christian Stein <cstein at openjdk.org> wrote:
>> Please review this change to handle an `EndOfFileException` while reading input from a user console in such a way, that no stacktrace is emitted. The handling of the `Ctrl+D` command is left as-is; here the following underlying core-libs should stay in control:
>>
>> - `System.in.read()`
>> - `System.console().reader().read()`
>> - `System.console().readLine()`
>> - `System.console().readPassword()`
>> - `System.in.readAllBytes()`
>> - `IO.readln()`
>
> Christian Stein has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains two commits:
>
> - Attempting to tweak behavior
> - 8358552: EndOfFileException in System.in.read() and IO.readln() etc. in JShell
Looks good to me, thanks!
-------------
Marked as reviewed by jlahoda (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/25713#pullrequestreview-2987687147
More information about the kulla-dev
mailing list