RFR: 8357682 : sun.security.provider.certpath.Builder#getMatchingPolicies always returns null [v2]

Sean Mullan mullan at openjdk.org
Wed Jul 23 20:56:54 UTC 2025


On Wed, 23 Jul 2025 17:30:38 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.
>
> Koushik Muthukrishnan Thirupattur has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8357682: sun.security.provider.certpath.Builder#getMatchingPolicies always returns null

Marked as reviewed by mullan (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/26418#pullrequestreview-3049035709


More information about the security-dev mailing list