[lworld] Misleading NPE message when casting null to inline type

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • repo-valhalla
    • Affects Version/s: repo-valhalla
    • Component/s: hotspot

              Object obj = null;
              MyValue vt = (MyValue)obj;

      Exception in thread "main" java.lang.NullPointerException: There cannot be a NullPointerException at bci 3 of method void Test.main(java.lang.String[])
      at Test.main(Test.java:32)

            Assignee:
            Unassigned
            Reporter:
            Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: