getClassLoader()

Archie Cobbs archie at whistle.com
Mon Jul 27 21:08:44 PDT 1998


The method Class.getClassLoader() is returning null, which is
causing stuff to bomb out with NullPointerException. Eg:

  class Bar {
    public static void main(String[] args) {
      Integer x = new Integer(1);
      System.out.println("Class loader = " + x.getClass().getClassLoader());
    }
  }

  $ kaffe Bar
  Class loader = null

This is a bug, right? I'm not super familiar with this method.

-Archie

___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com


More information about the kaffe mailing list