This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Jessie security providers can't be precompiled
- From: Andrew Haley <aph at redhat dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Wed, 30 Nov 2005 11:31:39 +0000
- Subject: Jessie security providers can't be precompiled
or rather, if they are precompiled we still load the bytecode anyway.
This is because VMCompiler depends on the security providers, so any
that are loaded before VMCompiler is initialized are interpreted. The
cure is to bypass the security provider machinery.
Andrew.
2005-11-30 Andrew Haley <aph@redhat.com>
* java/lang/VMCompiler.java: Generate a new instance of MD5
directly.
--- VMCompiler.java~ 2005-11-09 09:48:21.000000000 +0000
+++ VMCompiler.java 2005-11-30 11:24:09.000000000 +0000
@@ -89,7 +89,7 @@
{
try
{
- md5Digest = MessageDigest.getInstance("MD5");
+ md5Digest = new gnu.java.security.provider.MD5();
}
catch (NoSuchAlgorithmException _)
{