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: null ClassLoader




On Wed, 28 Nov 2001, Torsten R|ger wrote:
> This is not the point. java.* classes must always be loaded by the 
> bootstrap loader, as I understand an instance of 
> java.lang.VMClassLoader. Not any other arbitrary one.

Hrm... the bootstrap loader is not an instance of any class, it is a
mechanism internal to the VM.  (The VM specification doesn't say it is or
isn't, but empirically this is how other VM's work.)

So a class is loaded by the bootstrap loader iff getClassLoader() == null.

For Sun's VM all java.* and sun.* classes are loaded by the bootstrap
loader.  For libgcj the bootstrap classes would be java.* and gnu.*.

Jeff


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