-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P3
-
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;
}
}
class C {
static Point p; // no explicit initialization
static Point get_p() {
return p;
}
}