Integrated: 8357682 : sun.security.provider.certpath.Builder#getMatchingPolicies always returns null
Koushik Muthukrishnan Thirupattur
duke at openjdk.org
Wed Jul 30 20:00:01 UTC 2025
On Mon, 21 Jul 2025 22:33:40 GMT, Koushik Muthukrishnan Thirupattur <duke at openjdk.org> wrote:
> The method sun.security.provider.certpath.Builder#getMatchingPolicies appears to have been intended as a lazy initialization of the matchingPolicies field of the Builder class. However it checks for "matchingPolicies != null" (presumably it should be "matchingPolicies == null") at the start, which is always false. Therefore the method always returns null and the intended optimization goes unused.
This pull request has now been integrated.
Changeset: 413ac74e
Author: Koushik Thirupattur <koushik.thirupattur at oracle.com>
Committer: Sean Mullan <mullan at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/413ac74ecc225ff2cd7a729204a9c7a95dc48458
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
8357682: sun.security.provider.certpath.Builder#getMatchingPolicies always returns null
Reviewed-by: mullan
-------------
PR: https://git.openjdk.org/jdk/pull/26418
More information about the security-dev
mailing list