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

Jan Lahoda jlahoda at openjdk.org
Mon Jul 14 19:18:25 UTC 2025


> 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.

Jan Lahoda has updated the pull request incrementally with one additional commit since the last revision:

  Fixing test.

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/26292/files
  - new: https://git.openjdk.org/jdk/pull/26292/files/dd1df349..5ef03eb8

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=26292&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=26292&range=01-02

  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/26292.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26292/head:pull/26292

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


More information about the compiler-dev mailing list