RFR: 8368156: java/nio/file/Files/IsSameFile.java failing (win)

Alan Bateman alanb at openjdk.org
Tue Sep 23 08:44:29 UTC 2025


On Tue, 23 Sep 2025 08:10:35 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

> Hello Brian, this returns a collection which contains a `Path` that is obtained from a `FileSystem` that gets closed before the `Path` is used in the test method. Looking at the specification of `FileSystem.getPath()` I don't see any text which states the behaviour of `Path` instances after the `FileSystem` has been closed.

The FileSystem class description does specify: "Once closed, any further attempt to access objects in the file system cause ClosedFileSystemException to be thrown". I don't have time right now to check that the zip file system adheres to this.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27440#discussion_r2371595042


More information about the nio-dev mailing list