RFR: 8356165: System.in in jshell replace supplementary characters with ?? [v3]
Jan Lahoda
jlahoda at openjdk.org
Tue May 13 11:53:52 UTC 2025
On Mon, 12 May 2025 22:54:30 GMT, Tatsunori Uchino <duke at openjdk.org> wrote:
> I forgot to explain the context:
>
> * Increment of the number of input bytes to be read is to assure that a byte or code unit is not read twice or skipped
>
> * Providing extra input is to prevent the suspension due to the input starvation (especially for builds without this fix)
I missed the additional `1` there. But, I think the current code, although more complex, satisfies the constraints as well (we are reading the end-of-line, and checking for it).
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25079#issuecomment-2876199815
More information about the kulla-dev
mailing list