RFR: 8357682 : sun.security.provider.certpath.Builder#getMatchingPolicies always returns null [v2]
Koushik Muthukrishnan Thirupattur
duke at openjdk.org
Wed Jul 23 17:30:38 UTC 2025
> 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
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/26418/files
- new: https://git.openjdk.org/jdk/pull/26418/files/861801a4..9e7508e1
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=26418&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=26418&range=00-01
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/26418.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/26418/head:pull/26418
PR: https://git.openjdk.org/jdk/pull/26418
More information about the security-dev
mailing list