Integrated: 8377338: URLJarFile$URLJarFileEntry need not clone the arrays returned by getCertificates() and getCodeSigners()
Jaikiran Pai
jpai at openjdk.org
Wed Feb 11 09:46:07 UTC 2026
On Fri, 6 Feb 2026 10:02:23 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:
> Can I please get a review of this change which removes the overriden `getCertificates()` and `getCodeSigners()` method implementations in `URLJarFile$URLJarFileEntry`?
>
> These overriden implementations were returning a cloned array, but as noted in https://bugs.openjdk.org/browse/JDK-8377338, these overrides are not needed because the corresponding methods in the `JarEntry` super class already return a cloned array.
>
> Existing tests in tier1, tier2 and tier3 continue to pass with this change.
This pull request has now been integrated.
Changeset: 3a588e5b
Author: Jaikiran Pai <jpai at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/3a588e5bede4752f320f4b17f6086c9927616959
Stats: 16 lines in 1 file changed: 1 ins; 14 del; 1 mod
8377338: URLJarFile$URLJarFileEntry need not clone the arrays returned by getCertificates() and getCodeSigners()
Reviewed-by: mullan
-------------
PR: https://git.openjdk.org/jdk/pull/29600
More information about the net-dev
mailing list