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

[lworld] Flatten an atomic field in a non-atomic class

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • repo-valhalla
    • repo-valhalla
    • hotspot

      It seems that currently we don't flatten an atomic field in a non-atomic class. I don't see any fundamental issue with that. For example:

      @LooselyConsistenValue
      value class IntContainer {
          Integer i1;
          Integer i2;
          Integer i3;
      }

      Then i1, i2, i3 will not be flattened.

            Unassigned Unassigned
            qamai Quan Anh Mai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: