Integrated: 8362116: System.in.read() etc. don't accept input once immediate Ctrl+D pressed in JShell

Jan Lahoda jlahoda at openjdk.org
Tue Jul 15 06:16:49 UTC 2025


On Mon, 14 Jul 2025 12:48:27 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:

> When in JShell, doing:
> 
> jshell> IO.readln();
> //Ctrl-D
> $1 ==> null
> 
> jshell> IO.readln()
> $2 ==> null //no input allowed
> 
> 
> Where relying input from the main process to the remote/agent process, need to propagate `-1` as `-1` without close, which is what this PR is attempting to do.

This pull request has now been integrated.

Changeset: 40d159d4
Author:    Jan Lahoda <jlahoda at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/40d159d4a9718d8db0aadf66b322583cd5246d0c
Stats:     85 lines in 6 files changed: 79 ins; 1 del; 5 mod

8362116: System.in.read() etc. don't accept input once immediate Ctrl+D pressed in JShell

Reviewed-by: liach, cstein

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

PR: https://git.openjdk.org/jdk/pull/26292


More information about the compiler-dev mailing list