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:
parent
17ed6335dd
commit
b011ef316b
2 changed files with 7 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue