RFR: 8286735: (fc) FileChannel#map should document behavior when using custom file systems

Alan Bateman alanb at openjdk.java.net
Tue May 17 07:04:45 UTC 2022


On Tue, 17 May 2022 01:12:55 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Clarify when the `map()` methods of `java.nio.channels.FileChannel` throw an `UnsupportedOperationException`.

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.

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

Changes requested by alanb (Reviewer).

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


More information about the nio-dev mailing list