6819110: Lazily load Sun digest provider for jar verification
Summary: Lazily call Providers.getSunProvider() instead of at static initializer
Reviewed-by: mullan
--- a/jdk/src/share/classes/sun/security/util/ManifestEntryVerifier.java Mon Mar 30 19:22:27 2009 +0100
+++ b/jdk/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