RFR: 8358552: EndOfFileException in System.in.read() and IO.readln() etc. in JShell [v2]
Christian Stein
cstein at openjdk.org
Fri Jul 4 13:27:41 UTC 2025
On Mon, 30 Jun 2025 07:22:34 GMT, Christian Stein <cstein at openjdk.org> wrote:
>> 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
>
> test/langtools/jdk/jshell/InputUITest.java line 78:
>
>> 76: "System.console().readPassword()", " ==> null",
>> 77: "IO.readln()", " ==> \"null\""
>> 78: // TODO , "System.in.readAllBytes()", " ==> " // ... hangs forever
>
> Manual testing in a JShell session with this change set applied shows the watend behaviour: breaks with Ctrl+C and no exception is printed for Ctrl+D
Now also works as expected after @lahodaj's tweaks. 👍
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25713#discussion_r2185374317
More information about the kulla-dev
mailing list