RFR: 8261949: fileStream::readln returns incorrect line string
David Holmes
dholmes at openjdk.java.net
Fri Feb 19 01:30:39 UTC 2021
On Thu, 18 Feb 2021 12:31:29 GMT, Yang Yi <github.com+5010047+kelthuzadx at openjdk.org> wrote:
> When the last line does not contain a NEWLINE character, fileStream::readln would read
> truncated line string:
>
> $ cat file_content:
> AA
> BB
> CC<EOF>
>
> fileStream::readln result:
> "AA"
> "BB"
> "C"
>
> This patch address this problem, it works for Posix and Windows since the last character
> of these systems is always '\n'.
Changes requested by dholmes (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/2626
More information about the hotspot-runtime-dev
mailing list