RFR: 8279946: (ch) java.nio.channels.FileChannel tryLock and write methods are missing @throws NonWritableChannelException [v2]

Brian Burkhalter bpb at openjdk.java.net
Thu Jan 20 17:59:25 UTC 2022


> Please consider this change which would add `@throws` clauses for `NonWritableChannelException` to the various `tryLock()` and `write()` methods in `java.nio.channels.FileChannel`.

Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:

  8279946: Add missing NonReadableChannelException for tryLock(long,long,boolean)

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/7058/files
  - new: https://git.openjdk.java.net/jdk/pull/7058/files/fa54174e..e7abdaab

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=7058&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=7058&range=00-01

  Stats: 5 lines in 1 file changed: 4 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/7058.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/7058/head:pull/7058

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


More information about the nio-dev mailing list