Hi, On Fri, 2002-12-13 at 05:59, Casey Marshall wrote: > The loadProviders method of java.security.Security has a rather silly > bug in it: > > - --- LINE 92 --- > ~ while ((name = secprops.getProperty("security.provider." + i++)) != > ~ null) > ~ { > ~ Exception exception = null; > > ~ try > ~ { > providers.addElement(Class.forName(name).newInstance()); > i++; > > (etc.) > - ----- > > The value `i' is incremented twice in the `while' loop. Remove one of > them for the correct behavior.
Thanks for spotting this. Fixed by moving the i++ to the end of the while loop outside the try-catch block (otherwise i would not get incremented at all when a provider failed to load). Cheers, Mark _______________________________________________ Classpath mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/classpath