RFR: 5041655: (ch) FileLock: negative param and overflow issues

Brian Burkhalter bpb at openjdk.java.net
Mon Jan 31 17:55:12 UTC 2022


On Thu, 27 Jan 2022 22:12:32 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Add an implementation note to `java.nio.channels.FileLock.overlaps(long,long)` indicating that the method does not check its parameters. Adding such checks would be an incompatible change.

I already wrote a test but it was not sufficiently cleaned up to include yet.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7254


More information about the nio-dev mailing list