Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4330197

Get's Watson-log when invoke loadClass(null);

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.2.2
    • core-libs
    • x86
    • windows_nt



      Name: cl74495 Date: 04/13/2000


      [ Carlos.Lucasius@Canada -- April 13, 2000: regression of bug 4143615? ]


      import java.net.*;

      JavaVM fails when loadClass() method in URLClassloader has been invoked with argument null
      .

      Try the following program.

      class test{
      public static void main(String args[]){
      try{
      URL url[] = { new URL("file://c/work.jar") };
      URLClassLoader cl = new URLClassLoader(url);
      System.out.println(cl.loadClass(null));
      }catch(Throwable t){
      t.printStackTrace();
      }
      }
      }
      (Review ID: 103418)
      ======================================================================

            zlisunw Zhenghua Li (Inactive)
            clucasius Carlos Lucasius (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: