changeset 389:2f21c9f8136a

6673277: Thread unsafe lazy initialization code in sun.security.provider.certpath.*Checker classes Summary: make supportedExts variable non-static Reviewed-by: vinnie
author mullan
date Tue, 17 Jun 2008 10:34:51 -0400
parents e8201036fc65
children bc5159dc2a81
files src/share/classes/sun/security/provider/certpath/ConstraintsChecker.java src/share/classes/sun/security/provider/certpath/KeyChecker.java src/share/classes/sun/security/provider/certpath/PolicyChecker.java
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/security/provider/certpath/ConstraintsChecker.java	Wed Jun 04 09:56:14 2008 +0800
+++ b/src/share/classes/sun/security/provider/certpath/ConstraintsChecker.java	Tue Jun 17 10:34:51 2008 -0400
@@ -59,7 +59,7 @@
     private int i;
     private NameConstraintsExtension prevNC;
 
-    private static Set<String> supportedExts;
+    private Set<String> supportedExts;
 
     /**
      * Creates a ConstraintsChecker.
--- a/src/share/classes/sun/security/provider/certpath/KeyChecker.java	Wed Jun 04 09:56:14 2008 +0800
+++ b/src/share/classes/sun/security/provider/certpath/KeyChecker.java	Tue Jun 17 10:34:51 2008 -0400
@@ -50,7 +50,7 @@
     private CertSelector targetConstraints;
     private int remainingCerts;
 
-    private static Set<String> supportedExts;
+    private Set<String> supportedExts;
 
     /**
      * Default Constructor
--- a/src/share/classes/sun/security/provider/certpath/PolicyChecker.java	Wed Jun 04 09:56:14 2008 +0800
+++ b/src/share/classes/sun/security/provider/certpath/PolicyChecker.java	Tue Jun 17 10:34:51 2008 -0400
@@ -68,7 +68,7 @@
     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";