Integrated: 8326487: ZipFileSystem.getPath("").getFileName() returns null instead of an empty Path
Jaikiran Pai
jpai at openjdk.org
Thu Feb 19 01:44:18 UTC 2026
On Tue, 17 Feb 2026 15:27:51 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.
This pull request has now been integrated.
Changeset: c594da73
Author: Jaikiran Pai <jpai at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/c594da7304b2e76a1833e7ef89a5f186fd7d65bb
Stats: 34 lines in 2 files changed: 28 ins; 0 del; 6 mod
8326487: ZipFileSystem.getPath("").getFileName() returns null instead of an empty Path
Reviewed-by: alanb, lancea
-------------
PR: https://git.openjdk.org/jdk/pull/29760
More information about the core-libs-dev
mailing list