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

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P2
    • None
    • Affects Version/s: 1.2.2
    • Component/s: 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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: