RFR: 8279283 - BufferedInputStream should override transferTo [v10]
Alan Bateman
alanb at openjdk.org
Fri Sep 9 06:39:51 UTC 2022
On Thu, 8 Sep 2022 08:26:43 GMT, Markus KARG <duke at openjdk.org> wrote:
>> Implementation of JDK-8279283
>
> Markus KARG has updated the pull request incrementally with two additional commits since the last revision:
>
> - testing transferTo() when mark was set
> - testing transferTo() when buffer is non-empty
test/jdk/java/io/BufferedInputStream/TransferTo.java line 170:
> 168: if (mark) {
> 169: in.mark(1);
> 170: }
This just tests transferTo with a mark set, it doesn't appear to check that mark is respected. To test mark/reset then I think it will need to call mark with a largish readLimit, transferTo to drain the input to EOF, reset, and then read or transferTo again to check that the bytes from the mark are replayed.
-------------
PR: https://git.openjdk.org/jdk/pull/6935
More information about the core-libs-dev
mailing list