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.
------------- Commit messages: - 8357682:sun.security.provider.certpath.Builder#getMatchingPolicies always returns null Changes: https://git.openjdk.org/jdk/pull/26418/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26418&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8357682 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