Nicola Ken Barozzi wrote:



Stefan Bodewig wrote:

On Tue, 07 Jan 2003, Nicola Ken Barozzi <[EMAIL PROTECTED]> wrote:

Errr, so it's a bug, right?


I think so.  At least the code should check for null.

I'm confused, how can I know if a class can be loaded if I can't get
a classloader?  8-?


If Class.getClassLoader is null, the classloader is the system
classloader, i.e. you'd use Class.forName.

IIRC the VMs I've encountered that could return null in
Class.getClassLoader have either been 1.1 VMs or written by IBM.


from the posted message it was:

compile-src:
     [echo] Compiling project core with Java 1.4, debug on,
            optimize off, deprecation on

[EMAIL PROTECTED] nick]$ java -version java version "1.4.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92) Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode) [EMAIL PROTECTED] nick]$ uname -a Linux csm.chalko.com 2.4.9-31 #1 Tue Feb 26 06:25:35 EST 2002 i586 unknown



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



Reply via email to