[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: currentClassLoader problem
From: |
Archie Cobbs |
Subject: |
Re: currentClassLoader problem |
Date: |
Thu, 18 Mar 2004 08:59:57 -0600 (CST) |
David Holmes wrote:
> > Is is correct that getSystemClassLoaderInternal() is a gcj-specific
> > method? And why is native code needed, i.e., why can't you just
> > load an instance of gnu.java.lang.SystemClassLoader (or
> > gnu.gcj.runtime.VMClassLoader in gcj's case) using the bootstrap
> > loader, and then use it to load the user-specified class loader?
>
> Given that this all occurs at bootstrap time when the only pre-existing
> loader is the "null" bootstrap loader why not just instantiate the default
> system loader directly rather than using Class.forName? The construction
> will implicitly load the class using the internal VM mechanism associated
> with doing "new".
Good point.. that would be a lot simpler.
-Archie
__________________________________________________________________________
Archie Cobbs * CTO, Awarix * http://www.awarix.com