From 403a2ed2449b7c876857e0cf877996871bece681 Mon Sep 17 00:00:00 2001 From: mullan Date: Tue, 17 Jun 2008 10:34:51 -0400 Subject: [PATCH] 6673277: Thread unsafe lazy initialization code in sun.security.provider.certpath.*Checker classes Summary: make supportedExts variable non-static Reviewed-by: vinnie --- .../sun/security/provider/certpath/ConstraintsChecker.java | 2 +- .../classes/sun/security/provider/certpath/KeyChecker.java | 2 +- .../classes/sun/security/provider/certpath/PolicyChecker.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/share/classes/sun/security/provider/certpath/ConstraintsChecker.java b/src/share/classes/sun/security/provider/certpath/ConstraintsChecker.java index 9b065be85..40872d7d6 100644 --- a/src/share/classes/sun/security/provider/certpath/ConstraintsChecker.java +++ b/src/share/classes/sun/security/provider/certpath/ConstraintsChecker.java @@ -59,7 +59,7 @@ class ConstraintsChecker extends PKIXCertPathChecker { private int i; private NameConstraintsExtension prevNC; - private static Set supportedExts; + private Set supportedExts; /** * Creates a ConstraintsChecker. diff --git a/src/share/classes/sun/security/provider/certpath/KeyChecker.java b/src/share/classes/sun/security/provider/certpath/KeyChecker.java index e1a98ea61..1ed96c567 100644 --- a/src/share/classes/sun/security/provider/certpath/KeyChecker.java +++ b/src/share/classes/sun/security/provider/certpath/KeyChecker.java @@ -50,7 +50,7 @@ class KeyChecker extends PKIXCertPathChecker { private CertSelector targetConstraints; private int remainingCerts; - private static Set supportedExts; + private Set supportedExts; /** * Default Constructor diff --git a/src/share/classes/sun/security/provider/certpath/PolicyChecker.java b/src/share/classes/sun/security/provider/certpath/PolicyChecker.java index a94d0f23d..3b76f621c 100644 --- a/src/share/classes/sun/security/provider/certpath/PolicyChecker.java +++ b/src/share/classes/sun/security/provider/certpath/PolicyChecker.java @@ -68,7 +68,7 @@ class PolicyChecker extends PKIXCertPathChecker { private int inhibitAnyPolicy; private int certIndex; - private static Set supportedExts; + private Set supportedExts; private static final Debug debug = Debug.getInstance("certpath"); static final String ANY_POLICY = "2.5.29.32.0"; -- GitLab