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

Uwe Schindler uschindler at openjdk.java.net
Wed May 18 16:40:38 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`.

src/java.base/share/classes/java/nio/channels/FileChannel.java line 962:

> 960:      *
> 961:      * @throws UnsupportedOperationException
> 962:      *         If an unsupported map mode is specified, or if the implementation

If you don't agree that the spec should be changed for the old API spec, let's remove that statement and only fix the new method's documentation.

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

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


More information about the nio-dev mailing list