changeset 1030:85a91be56593

6819110: Lazily load Sun digest provider for jar verification Summary: Lazily call Providers.getSunProvider() instead of at static initializer Reviewed-by: mullan
author mchung
date Tue, 31 Mar 2009 23:52:04 -0700
parents ff0a9e50f033
children ee75d1fac0ca de80210c56a6 267d1f8aa82a
files src/share/classes/sun/security/util/ManifestEntryVerifier.java
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/security/util/ManifestEntryVerifier.java	Mon Mar 30 19:22:27 2009 +0100
+++ b/src/share/classes/sun/security/util/ManifestEntryVerifier.java	Tue Mar 31 23:52:04 2009 -0700
@@ -44,8 +44,6 @@
 
     private static final Debug debug = Debug.getInstance("jar");
 
-    private static final Provider digestProvider = Providers.getSunProvider();
-
     /** the created digest objects */
     HashMap<String, MessageDigest> createdDigests;
 
@@ -127,7 +125,7 @@
                     try {
 
                         digest = MessageDigest.getInstance
-                                        (algorithm, digestProvider);
+                                        (algorithm, Providers.getSunProvider());
                         createdDigests.put(algorithm, digest);
                     } catch (NoSuchAlgorithmException nsae) {
                         // ignore