This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 _)
       {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]