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

duke duke at openjdk.org
Tue Jul 29 01:52:55 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

@koushikthirupattur 
Your change (at version 9e7508e10994f57dfffc29c4bfe67e3cf1c82f4c) is now ready to be sponsored by a Committer.

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

PR Comment: https://git.openjdk.org/jdk/pull/26418#issuecomment-3130278029


More information about the security-dev mailing list