RFR: 8326487: ZipFileSystem.getPath("").getFileName() returns null instead of an empty Path [v2]

Jaikiran Pai jpai at openjdk.org
Thu Feb 19 01:44:16 UTC 2026


On Wed, 18 Feb 2026 02:17:11 GMT, Jaikiran Pai <jpai at openjdk.org> 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.
>
> Jaikiran Pai has updated the pull request incrementally with one additional commit since the last revision:
> 
>   move the test to PathOps

Thank you Lance and Alan for the reviews. tier testing completed without any issues. I'll integrate this now.

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

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


More information about the core-libs-dev mailing list