JDK-8279946 : (ch) java.nio.channels.FileChannel tryLock and write methods are missing @throws NonWritableChannelException
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 18
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2022-01-13
  • Updated: 2022-01-31
  • Resolved: 2022-01-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 19
19 b07Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Description
The java.nio.channels.FileChannel methods tryLock() and write() are missing throws clauses for NonWritableChannelException although these methods throw such an exception when the channel is read-only.
Comments
Changeset: f4575e40 Author: Brian Burkhalter <bpb@openjdk.org> Date: 2022-01-25 18:02:18 +0000 URL: https://git.openjdk.java.net/jdk/commit/f4575e4052bf66f1259c626e01a74d3ac593e645
25-01-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/7058 Date: 2022-01-13 02:40:39 +0000
13-01-2022