# HG changeset patch # User mchung # Date 1238568724 25200 # Node ID ae466737130140fb8daa1958f4bbe30509607ea2 # Parent 5c063c7a9f513e2fbc1fda2e5bde8df51261fe15 6819110: Lazily load Sun digest provider for jar verification Summary: Lazily call Providers.getSunProvider() instead of at static initializer Reviewed-by: mullan diff -r 5c063c7a9f51 -r ae4667371301 jdk/src/share/classes/sun/security/util/ManifestEntryVerifier.java --- 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 createdDigests; @@ -127,7 +125,7 @@ try { digest = MessageDigest.getInstance - (algorithm, digestProvider); + (algorithm, Providers.getSunProvider()); createdDigests.put(algorithm, digest); } catch (NoSuchAlgorithmException nsae) { // ignore