Index: java/security/AccessControlContext.java =================================================================== RCS file: /cvsroot/classpath/classpath/java/security/AccessControlContext.java,v retrieving revision 1.9 diff -u -r1.9 AccessControlContext.java --- java/security/AccessControlContext.java 4 Jul 2004 18:32:32 -0000 1.9 +++ java/security/AccessControlContext.java 28 Apr 2005 05:42:18 -0000 @@ -65,7 +65,7 @@ * * @param context The ProtectionDomains to use */ - public AccessControlContext(ProtectionDomain[]context) + public AccessControlContext(ProtectionDomain[] context) { HashSet domains = new HashSet (context.length); for (int i = 0; i < context.length; i++) Index: java/security/Security.java =================================================================== RCS file: /cvsroot/classpath/classpath/java/security/Security.java,v retrieving revision 1.34 diff -u -r1.34 Security.java --- java/security/Security.java 6 Dec 2004 20:43:13 -0000 1.34 +++ java/security/Security.java 28 Apr 2005 05:42:18 -0000 @@ -40,6 +40,8 @@ import gnu.classpath.SystemProperties; +import gnu.classpath.Configuration; + import java.io.IOException; import java.io.InputStream; import java.net.URL; @@ -79,20 +81,27 @@ if (!loadProviders (base, "classpath") && !loaded && providers.size() == 0) - { - // No providers found and both security files failed to load properly. - System.err.println - ("WARNING: could not properly read security provider files:"); - System.err.println - (" " + base + "/security/" + vendor + ".security"); - System.err.println - (" " + base + "/security/" + "classpath" + ".security"); - System.err.println - (" Falling back to standard GNU security provider"); - providers.addElement (new gnu.java.security.provider.Gnu()); - } - } - + { + if (Configuration.DEBUG) + { + /* No providers found and both security files failed to + * load properly. Give a warning in case of DEBUG is + * enabled. Could be done with java.util.logging later. + */ + System.err.println + ("WARNING: could not properly read security provider files:"); + System.err.println + (" " + base + "/security/" + vendor + + ".security"); + System.err.println + (" " + base + "/security/" + "classpath" + + ".security"); + System.err.println + (" Falling back to standard GNU security provider"); + } + providers.addElement (new gnu.java.security.provider.Gnu()); + } + } // This class can't be instantiated. private Security() {