[kaffe] CVS kaffe (stack): Tweak to provider class loading in java.security.Security

Kaffe CVS cvs-commits at kaffe.org
Tue Oct 21 12:45:02 PDT 2003


PatchSet 4115 
Date: 2003/10/21 19:43:06
Author: stack
Branch: HEAD
Tag: (none) 
Log:
Tweak to provider class loading in java.security.Security

Members: 
	ChangeLog:1.1709->1.1710 
	libraries/javalib/java/security/Security.java:1.11->1.12 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1709 kaffe/ChangeLog:1.1710
--- kaffe/ChangeLog:1.1709	Sun Oct 19 02:31:53 2003
+++ kaffe/ChangeLog	Tue Oct 21 19:43:06 2003
@@ -1,3 +1,9 @@
+2003-10-21  Timothy S. Stack <stack at cs.utah.edu>
+
+	* libraries/javalib/java/security/Security.java:
+	Use the system class loader to load provider classes, otherwise
+	they would have to be in the BOOTCLASSPATH.
+	
 2003-10-19  Ito Kazumitsu <kaz at maczuka.gcd.org>
 
 	* libraries/javalib/gnu/xml/aelfred2/SAXDriver.java:
Index: kaffe/libraries/javalib/java/security/Security.java
diff -u kaffe/libraries/javalib/java/security/Security.java:1.11 kaffe/libraries/javalib/java/security/Security.java:1.12
--- kaffe/libraries/javalib/java/security/Security.java:1.11	Thu Feb 20 13:52:09 2003
+++ kaffe/libraries/javalib/java/security/Security.java	Tue Oct 21 19:43:07 2003
@@ -54,6 +54,7 @@
 
 		// Install configured security providers
 		for (Iterator i = props.entrySet().iterator(); i.hasNext(); ) {
+			ClassLoader cl = ClassLoader.getSystemClassLoader();
 			Map.Entry ent = (Map.Entry)i.next();
 			String key = (String)ent.getKey();
 
@@ -62,7 +63,7 @@
 			}
 			try {
 				insertProviderAt(
-				    (Provider)Class.forName(
+				    (Provider)cl.loadClass(
 					(String)ent.getValue()).newInstance(),
 				    Integer.parseInt(
 					key.substring(PROV_PREFIX.length())));




More information about the kaffe mailing list