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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: hotspot
    • Labels:

      Description

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

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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: