On Tue, 17 Feb 2026 15:27:51 GMT, Jaikiran Pai <[email protected]> wrote:

> Can I please get a review of this change which proposes to fix the issue 
> reported in https://bugs.openjdk.org/browse/JDK-8326487?
> 
> `java.nio.file.Path.getFileName()` is specified to return a non-null value 
> for an empty path. However, the current implementation of zipfs returns null 
> for an empty path. The commit in this PR addresses that issue in zipfs and 
> introduces a test which reproduces the issue and verifies the fix.

Lance suggested that the existing `test/jdk/jdk/nio/zipfs/PathOps.java` might 
be a better place for this test. So I've moved the test into that file and 
updated the PR. I've verified that the test fails without the fix and passes 
with it.

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

PR Comment: https://git.openjdk.org/jdk/pull/29760#issuecomment-3918102623

Reply via email to