Other |
---|
repo-valhallaFixed |
Duplicate :
|
|
Duplicate :
|
|
Duplicate :
|
|
Relates :
|
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.
|