8241952: (fs) FileChannel.write(ByteBuffer src, long position) does not check for the FileChannel being closed first
Brian Burkhalter
brian.burkhalter at oracle.com
Wed Apr 8 20:28:41 UTC 2020
To address [1] please see [2]. The same thing applies to FileChannel.read(ByteBuffer,long). It is not clear whether the exceptions should be expected in the order documented. If so, an alternative would be to change the documentation.
I noticed that the documentation of the FileChannel methods implementing {Scattering,Gathering}ByteChannel does not inherit all the throws cases documented in these latter interfaces.
Thanks,
Brian
[1] https://bugs.openjdk.java.net/browse/JDK-8241952
[2] http://cr.openjdk.java.net/~bpb/8241952/webrev.00/
More information about the nio-dev
mailing list