mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
Security.java (loadProviders): Fix bug in how providers are loaded.
2001-10-17 Anthony Green <green@redhat.com> * java/security/Security.java (loadProviders): Fix bug in how providers are loaded. From-SVN: r46319
This commit is contained in:
committed by
Tom Tromey
parent
17ed6335dd
commit
b011ef316b
@@ -76,10 +76,11 @@ public final class Security extends Object
|
||||
String name;
|
||||
StringBuffer pname = new StringBuffer("security.provider.");
|
||||
|
||||
while ((name = secprops.getProperty(pname.append(i).toString())) !=
|
||||
while ((name = secprops.getProperty("security.provider." + i++)) !=
|
||||
null)
|
||||
{
|
||||
Exception exception = null;
|
||||
|
||||
try
|
||||
{
|
||||
providers.addElement(Class.forName(name).newInstance());
|
||||
|
||||
Reference in New Issue
Block a user