Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8326598

[lworld] JVM must support field inheritance for value classes

XMLWordPrintable

      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.



            fparain Frederic Parain
            fparain Frederic Parain
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: