On Thu, 8 Sep 2022 08:26:43 GMT, Markus KARG <d...@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