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:
Anthony Green 2001-10-17 18:03:41 +00:00 committed by Tom Tromey
parent 17ed6335dd
commit b011ef316b
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-10-17 Anthony Green <green@redhat.com>
* java/security/Security.java (loadProviders): Fix bug in how
providers are loaded.
2001-10-16 Tom Tromey <tromey@redhat.com>
* gcj/javaprims.h: Updated class list.

View File

@ -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());