RFR: 8293121: (fs) Refactor UnixFileSystem copying into generic Unix, Linux, and BSD implementations

Alan Bateman alanb at openjdk.org
Wed Aug 31 13:38:10 UTC 2022


On Wed, 31 Aug 2022 02:28:44 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Refactor `UnixFileSystem` and related classes to move implementations specific to Linux and BSD (macOS) into OS-specific classes and native code. Generic Unix implementations remain in existing `Unix*` files.

The refactoring means there is a 1-1 relationship between UnixFileSystem and a state-less UnixFileCopy.  If you just move the methods to UnixFileSystem then it will give you the framework to add Linux overrides to LinuxFileSystem and macOS/BSD overrides to  BsdFileSystem. That would avoid needing to create a parallel hierarchy of classes just to support copy/move.

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

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


More information about the nio-dev mailing list