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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.0
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      rc1
    • CPU:
      sparc
    • OS:
      solaris_2.6
    • Verification:
      Not verified

      Description

      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());
      }
          }
      }

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: