This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: null ClassLoader
- To: Torsten R|ger <torsten dot rueger at firsthop dot com>
- Subject: Re: null ClassLoader
- From: Jeff Sturm <jsturm at one-point dot com>
- Date: Fri, 26 Oct 2001 14:59:08 -0400 (EDT)
- cc: java at gcc dot gnu dot org
On Fri, 26 Oct 2001, Torsten R|ger wrote:
> > This has been discussed before...
>
> Yes, but it hasn't been implemented. Why ? Such a small thing.
Maybe because the correct semantics aren't that obvious? Sun has both a
bootclasspath & classpath; gcj does not. There is no simple way to
distinguish classes that are linked into the final executable (whether
static or not) from libgcj classes.
If there is agreement that the best action is assigning no classloader
to java.* and gnu.* classes, and a singleton to everything else loaded at
startup, then we can do that.
You can also use Per's SharedLibLoader (which will be in 3.1) to load
native code in a real classloader context. Perhaps this ought to be
the default for all dlopen'ed code.
Jeff