RFR: 8288080: (fc) FileChannel::map for MemorySegments should state it always throws UOE [v2]
Brian Burkhalter
bpb at openjdk.java.net
Thu Jun 9 15:45:39 UTC 2022
On Thu, 9 Jun 2022 08:39:05 GMT, Uwe Schindler <uschindler at openjdk.org> wrote:
>> Alternative: "The default implementation of `map(MapMode, long, long, MemorySession)` method in abstract `FileChannel` always throws an `UnsupportedOperationException`. Subclasses should override it."
I simplified it to match similar statements in `Selector` and `SelectorProvider`, for example. I don't think that the second sentence about overriding is needed.
-------------
PR: https://git.openjdk.org/jdk/pull/9095
More information about the nio-dev
mailing list