RFR: 8293331: Refactor FileChannelImpl into operating system-specific components

Brian Burkhalter bpb at openjdk.org
Tue Sep 6 18:04:43 UTC 2022


On Sat, 3 Sep 2022 06:13:49 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> FileChannel delegates to a FileDispatcher so there is already a place for OS specific code (both java and native code). I think we should try to lean on that before introducing a parallel hierarchy of classes.

Having thought more about it over the long weekend I don't like this proposal as it stands either. The native methods as-is however I thought are too long for the usual `FileDispatcher` standard. I will however investigate this alternative.

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

PR: https://git.openjdk.org/jdk/pull/10154


More information about the nio-dev mailing list