RFR: 8326487: ZipFileSystem.getPath("").getFileName() returns null instead of an empty Path [v2]
Lance Andersen
lancea at openjdk.org
Wed Feb 18 14:23:27 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
Marked as reviewed by lancea (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/29760#pullrequestreview-3820192149
More information about the core-libs-dev
mailing list