Chris Gray wrote: > Why do you think people write stuff like > Class c; > ClassLoader cl = this.getClass().getClassLoader(); > if (cl == null) { > c = Class.forName(classname); > } > else { > c = Class.forName(classname, false, cl); > } > > Which gets tedious, real fast. :-{
Hmmm. Given that the *only* distinction between the two forms of forName are that the first implies initialize=true while the latter gives initialize=false, I don't know why anyone would write that code. ??? Class.forName(className) is "equivalent to: Class.forName(className, true, currentLoader) where currentLoader denotes the defining class loader of the current class." David Holmes _______________________________________________ Classpath mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/classpath