[lworld][c1] null check is needed when reading non-nullable static fields

XMLWordPrintable

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

      If Point is a value class, when reading a static field of Point type, a null check is needed so we can return Point.default if this field was not explicitly initialized:

      class C {
          static Point p; // no explicit initialization
          static Point get_p() {
              return p;
          }
      }

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

              Created:
              Updated:
              Resolved: