This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ClassLoader initialization in _Jv_RunMain


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]