[kaffe] Problem with defineClass in a user-ClassLoader
Nicolas Le Sommer
Nicolas.Le-Sommer@univ-ubs.fr
Tue, 07 May 2002 18:02:20 +0200
Hi,
I would like to build a classLoader that permits to load classes without
delegating the class loading to the SystemClassLoader.
Seen from this point of view, I read the classes from the file system
(readClassFile method) and then I called the defineClass method as
following :
byte [] data = readClassFile(name);
if(data != null)
{
return defineClass(name,data, 0, data.length);
}
I have the following message when I try to read the classes of the Java
API, but I have no problems to load and define my own classes.
Kaffe: classMethod.c:287: processClass: Assertion `(class ==
ObjectClass) || (class->superclass != ((void *)0))' failed.
Abandon
Best regards,
Nicolas