I'd like some comments before checking this in. According to the JCE guide, a security provider can be loaded via the class path, see:
http://java.sun.com/j2se/1.5.0/docs/guide/security/jce/JCERefGuide.html#InstallProvider This means that the provider should be loaded using the system class loader, not the bootstrap class loader. This patch implements this change. Tom 2006-02-01 Tom Tromey <[EMAIL PROTECTED]> * java/security/Security.java (loadProviders): Use system class loader. Index: java/security/Security.java =================================================================== RCS file: /cvsroot/classpath/classpath/java/security/Security.java,v retrieving revision 1.41 diff -u -r1.41 Security.java --- java/security/Security.java 19 Jan 2006 09:51:53 -0000 1.41 +++ java/security/Security.java 1 Feb 2006 20:46:43 -0000 @@ -133,7 +133,8 @@ Exception exception = null; try { - providers.addElement(Class.forName(name).newInstance()); + ClassLoader sys = ClassLoader.getSystemClassLoader(); + providers.addElement(Class.forName(name, true, sys).newInstance()); } catch (ClassNotFoundException x) {
