Fix for [JDK-8271623](https://bugs.openjdk.org/browse/JDK-8271623) introduced a 
sensible optimization: omitting the generation of enclosing instance fields for 
classes not using it. We have decided not to apply this optimization to value 
classes, as it could be problematic. See related discussion 
[here](https://mail.openjdk.org/archives/list/[email protected]/thread/DROHHBNWIWPQZMJOWUNJGKMJO76MO4FS/)

TIA




---------
- [X] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

-------------

Commit messages:
 - 8394667: Omitting enclosing instance fields in value classes can provoke 
undesirable effects

Changes: https://git.openjdk.org/jdk/pull/33507/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33507&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8394667
  Stats: 82 lines in 6 files changed: 65 ins; 0 del; 17 mod
  Patch: https://git.openjdk.org/jdk/pull/33507.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/33507/head:pull/33507

PR: https://git.openjdk.org/jdk/pull/33507

Reply via email to