RFR: 8371436: (fs) java/nio/file/FileStore/Basic.java fails on macOS platform due to assertTrue(!store.equals(prev));

Alan Bateman alanb at openjdk.org
Sat Nov 8 08:20:01 UTC 2025


On Fri, 7 Nov 2025 21:30:22 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> In `BsdNativeDispatcher.fsstatEntry()`, initialize the `UnixMountEntry` field `dev`, which propagates to `UnixFileStore` and is used in the latter's `equals` method, which `BsdFileStore` does not override.

So the dev field has always been 0, I assume this goes back to the original port to macOS in JDK 7u.

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

Marked as reviewed by alanb (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/28205#pullrequestreview-3437782186


More information about the nio-dev mailing list