invocation of URL(null) crashes VM

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.2.2
    • Affects Version/s: 1.2.2
    • Component/s: hotspot
    • 1.2.2
    • x86
    • linux
    • Verified



      Name: kaC94536 Date: 11/19/99



      The following test crashes Linux VM when JIT is used:

      ----------------------------- test.java ------------------------

      import java.net.*;

      public class test {

          public static void main(String argv[]) {
         
             try {
                  new URL(null);
             } catch(Exception e) {
             }
             System.out.println("Ok");
          }
      }

      -------------------------------- output --------------------------

      $ java -fullversion
      java full version "1.2.2-D"
      $ java -Djava.compiler=no test
      Ok
      $ java -Djava.compiler=javacomp test
      Segmentation fault (core dumped)
      $

      ======================================================================

      ======================================================================

            Assignee:
            Hong Zhang
            Reporter:
            Konstantin Anisimov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: