6673277: Thread unsafe lazy initialization code in sun.security.provider.certpath.*Checker classes

Make supportedExts variable non-static

Reviewed-by: vinnie
This commit is contained in:
Sean Mullan 2008-06-17 10:34:51 -04:00
parent 720109f8ec
commit 172da57394
3 changed files with 3 additions and 3 deletions
jdk/src/share/classes/sun/security/provider/certpath

@ -59,7 +59,7 @@ class ConstraintsChecker extends PKIXCertPathChecker {
private int i;
private NameConstraintsExtension prevNC;
private static Set<String> supportedExts;
private Set<String> supportedExts;
/**
* Creates a ConstraintsChecker.

@ -50,7 +50,7 @@ class KeyChecker extends PKIXCertPathChecker {
private CertSelector targetConstraints;
private int remainingCerts;
private static Set<String> supportedExts;
private Set<String> supportedExts;
/**
* Default Constructor

@ -68,7 +68,7 @@ class PolicyChecker extends PKIXCertPathChecker {
private int inhibitAnyPolicy;
private int certIndex;
private static Set<String> supportedExts;
private Set<String> supportedExts;
private static final Debug debug = Debug.getInstance("certpath");
static final String ANY_POLICY = "2.5.29.32.0";