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

[lworld][c1] checkcast for value type should throw NullPointerException with null operand

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • repo-valhalla
    • repo-valhalla
    • hotspot

      When Point is a value class, the following should throw NullPointerException.

      static Point test() {
          Object o = null;
          Point p = (Point)o;
          return p;
      }

            iklam Ioi Lam
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: