RFR: 8286735: (fc) FileChannel#map should document behavior when using custom file systems
Brian Burkhalter
bpb at openjdk.java.net
Tue May 17 16:08:46 UTC 2022
On Tue, 17 May 2022 07:01:53 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> I think this feature request will require a lot more discussion on what the right level of optionality is. If a custom file system provider does not support all features (file locking, memory-mapped files, ..) then FileSystemProvider::newFileChannel should throw UOE.
I wonder whether for the immediate purpose for which this issue was filed the changes to the `@throws UnsupportedOperationException` clauses should be removed and only the new `@implSpec` retained?
-------------
PR: https://git.openjdk.java.net/jdk/pull/8739
More information about the nio-dev
mailing list