-
Bug
-
Resolution: Fixed
-
P2
-
repo-valhalla
In LW5 and previous model, value classes were not allowed to inherit fields from a super class.
JEP 401 allows a value class to inherit non-static fields from a super value abstract class. Class file validation and field layout computation must be adjusted to this new rule.
Warning: this rule enables a new kind of circularity, where a value abstract class declares a non-static field with type one of the class sub-value class.
JEP 401 allows a value class to inherit non-static fields from a super value abstract class. Class file validation and field layout computation must be adjusted to this new rule.
Warning: this rule enables a new kind of circularity, where a value abstract class declares a non-static field with type one of the class sub-value class.
- duplicates
-
JDK-8331504 [lworld] Add field inheritance to value classes
-
- Closed
-
-
JDK-8328417 [lworld] Reimplement TestClassModifiers for JEP401
-
- Closed
-
-
JDK-8328419 [lworld] Reimplement TestSuperClasses for JEP401
-
- Closed
-
- relates to
-
JDK-8331964 [lworld] C2: Support abstract value class fields
-
- Resolved
-
(1 links to)