This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: null ClassLoader
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Torsten R|ger <torsten dot rueger at firsthop dot com>
- Cc: java at gcc dot gnu dot org
- Date: Wed, 28 Nov 2001 16:40:20 -0500 (EST)
- Subject: 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