8227609: (fs) Files.newInputStream(...).skip(n) should allow skipping beyond file size

Alan Bateman Alan.Bateman at oracle.com
Thu Jul 25 19:58:24 UTC 2019


On 25/07/2019 19:14, Brian Burkhalter wrote:
>
> Updated as suggested; test modified accordingly.
>
> http://cr.openjdk.java.net/~bpb/8227609/webrev.01/
>
>
This looks okay.

Can the test be expanded to include cases where the result differs to 
the input, e.g. skip(-<pos>*2) should return -<pos>, 
skip(Long.MIN_VALUE) return should -<pos>, etc.

-Alan



More information about the nio-dev mailing list