-
Bug
-
Resolution: Fixed
-
P3
-
None
-
repo-panama
There are many dependencies between MemorySegment::map and FileChannel::map - they both require a MapMode, for instance. In addition, clients that want to create mapped memory regions might want to map the same file in multiple regions, in which case working on a FileChannel seems more convenient than working off a Path (which would require creating the channel twice, under the hood).
For these reasons, the mapped memory segment factory should move as an instance method on FileChannel, and renamed to `mapAsMemorySegment`. Also some of the parameter names of the methods should be renamed to match those in FileChannel::map.
For these reasons, the mapped memory segment factory should move as an instance method on FileChannel, and renamed to `mapAsMemorySegment`. Also some of the parameter names of the methods should be renamed to match those in FileChannel::map.
- relates to
-
JDK-8259028 ClassCastException when using custom filesystem with wrapper FileChannel impl
- Resolved