[kaffe] loadClass() vs. loadClass()

Timothy Stack stack at cs.utah.edu
Fri Sep 19 08:16:02 PDT 2003


> Hi,
> 
> I gave JBoss another try recently and finally got to a
> point where I really don't know what to do.
> 
> As you will know, java.lang.ClassLoader contains two
> different loadClass methods, one that takes a String
> and a boolean as its parameters and one that takes
> only a String. Whenever kaffe has to load some class
> using a user defined loader, it invokes the two parameter
> form of loadClass.

Looks like this is just wrong, the javadoc says the single parameter one 
should be called...

> JBOSS however contains a class loader that only overrides
> the loadClass(String) method, but not the other one.
> This means that it doesn't work with kaffe at the moment,
> because some classes will not be found.

Hmm, they should be overriding findClass(), is there any reason why they 
needed to use loadClass()?

> Regards,
> Helmer

tim




More information about the kaffe mailing list