[kaffe] CVS kaffe (stack): Another Class.forName() -> ClassLoader.loadClass() change

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


PatchSet 4116 
Date: 2003/10/21 21:06:16
Author: stack
Branch: HEAD
Tag: (none) 
Log:
Another Class.forName() -> ClassLoader.loadClass() change

Members: 
	libraries/javalib/java/security/Security.java:1.12->1.13 

Index: kaffe/libraries/javalib/java/security/Security.java
diff -u kaffe/libraries/javalib/java/security/Security.java:1.12 kaffe/libraries/javalib/java/security/Security.java:1.13
--- kaffe/libraries/javalib/java/security/Security.java:1.12	Tue Oct 21 19:43:07 2003
+++ kaffe/libraries/javalib/java/security/Security.java	Tue Oct 21 21:06:16 2003
@@ -279,8 +279,9 @@
 
 		// Instantiate class
 		try {
+			ClassLoader cl = ClassLoader.getSystemClassLoader();
 			return new Engine(p, alg,
-				Class.forName(name).newInstance());
+				cl.loadClass(name).newInstance());
 		} catch (ClassNotFoundException e) {
 			throw new NoSuchAlgorithmException("class "
 				+ name + " not found");




More information about the kaffe mailing list