Commit fd9065b2 by Andreas Tobler Committed by Andreas Tobler

Security.java (Security): Silence the warning about no providers found in the no debug case.

2004-11-16  Andreas Tobler  <a.tobler@schweiz.ch>

	* java/security/Security.java (Security): Silence the warning about no
	providers found in the no debug case.

From-SVN: r90765
parent d281a1f1
2004-11-16 Andreas Tobler <a.tobler@schweiz.ch>
* java/security/Security.java (Security): Silence the warning about no
providers found in the no debug case.
2004-11-16 Michael Koch <konqueror@gmx.de> 2004-11-16 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java * java/net/InetAddress.java
......
...@@ -40,6 +40,8 @@ package java.security; ...@@ -40,6 +40,8 @@ package java.security;
import gnu.java.security.action.GetPropertyAction; import gnu.java.security.action.GetPropertyAction;
import gnu.classpath.Configuration;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.net.URL; import java.net.URL;
...@@ -82,19 +84,26 @@ public final class Security ...@@ -82,19 +84,26 @@ public final class Security
&& !loaded && !loaded
&& providers.size() == 0) && providers.size() == 0)
{ {
// No providers found and both security files failed to load properly. 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 System.err.println
("WARNING: could not properly read security provider files:"); ("WARNING: could not properly read security provider files:");
System.err.println System.err.println
(" " + base + "/security/" + vendor + ".security"); (" " + base + "/security/" + vendor
+ ".security");
System.err.println System.err.println
(" " + base + "/security/" + "classpath" + ".security"); (" " + base + "/security/" + "classpath"
+ ".security");
System.err.println System.err.println
(" Falling back to standard GNU security provider"); (" Falling back to standard GNU security provider");
}
providers.addElement (new gnu.java.security.provider.Gnu()); providers.addElement (new gnu.java.security.provider.Gnu());
} }
} }
// This class can't be instantiated. // This class can't be instantiated.
private Security() private Security()
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment