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

t104 in -Xcomp [NullPointerException must be thrown when synching on a null oop]

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 1.0
    • 1.0
    • hotspot
    • None
    • rc1
    • sparc
    • solaris_2.6
    • Not verified

      Failure to throw NullPointerException in -Xcomp

      class t104
      {
          public static void main(String[] argv)
          {
      t104 o = null;
      try
      {
      synchronized(o)
      {
      System.out.println("Fubar: monitorenter didn't throw.");
      }
      System.out.println("Bottom of try block.");
      }
      catch(Throwable t)
      {
      System.out.println("Exception thrown.");
      System.out.println(t.toString());
      }
          }
      }

            cclicksunw Clifford Click (Inactive)
            sduvur Sreeram Duvur (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: