ClassLoader initialization in _Jv_RunMain

Bryce McKinlay bryce@mckinlay.net.nz
Thu Nov 13 21:17:00 GMT 2003


On Nov 11, 2003, at 11:29 AM, Mark Wielaard wrote:

> The gcj Bootstrap classloader cheats a bit (by calling back into
> URLClassLoader as a fallback to the interpreter). We should create a
> real Classloader (parent) chain, with the URLClassLoader that the
> interpreter would use as a real child of the VMClassLoader.

I agree. Its pretty ugly that our bootstrap classloader extends 
URLClassLoader. This drags a lot of code into the runtime bootstrap 
sequence which apps that don't use the interpreter probably don't need. 
Its also a bit confusing how we have two VMClassLoader's (java.lang and 
gnu.gcj.runtime). It would be great to get all this cleaned this all 
up, but I suspect the classloader stuff is a can of worms that might be 
dangerous to open prior to 3.4.

Regards

Bryce.




More information about the Java mailing list