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

[lworld] Add support for ACC_FLATTENABLE flag for fields.

    XMLWordPrintable

Details

    • generic
    • generic

    Description

      - A field may be declared as a candidate for flattening by encoding the flag value ACC_FLATTENABLE (0x0100)
      - During class resolution by the VM, If the field marked as ACC_FLATTENABLE is not in fact a value class, loading throws an IncompatibleClassChangeError - which implies that javac should disallow non value fields from being tagged ACC_FLATTENABLE
      - A field flagged as ACC_FLATTENABLE must never store the null reference.
      - Check impact of ACC_FLATTENABLE on compiler diagnostic cyclic.value.type.membership: A field declared with the ACC_FLATTENABLE flag set must not have the type of its declaring class, nor refer indirectly to its declaring class through a chain of fields with the ACC_FLATTENABLE flag set.

      Attachments

        Activity

          People

            sadayapalam Srikanth Adayapalam (Inactive)
            sadayapalam Srikanth Adayapalam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: