Presented by *Dan Smith* - Senior Developer (Java Platform Group - Oracle) during the *JVM* *Language* *Summit* (August 2024 - Santa Clara, CA).
_*Improving Field Initialization*_
_This video shows how we can co-evolve the Java language, JVM, and common coding practices to improve how fields are initialized, providing stronger guarantees about their contents._
_Goals include_
_1) eliminating the need for default values;_
_2) ensuring final fields cannot be observed to mutate; and_
_3) avoiding early publication of uninitialized objects._
_In Amber, Flexible Constructor Bodies allow Java code to initialize fields earlier than it could before, and in Valhalla, value classes have repurposed the ACC_STRICT flag to mark fields that support stronger guarantees._
Make sure to check the https://www.youtube.com/playlist?list=PLX8CzqL3ArzUEYnTa6KYORRbP3nhsK0L1 playlist.
*Resources*
• JEP Draft - Null-Restricted and Nullable Types (Preview) ➤ https://bugs.openjdk.org/browse/JDK-8303099
• JEP Draft - Value Classes and Objects (Preview) ➤ https://openjdk.org/jeps/401
• Valhalla - Where Are We? ➤
https://youtu.be/IF9l8fYfSnI
• Project Valhalla ➤ https://openjdk.org/projects/valhalla/
• Inside Java ➤ https://inside.java/tag/valhalla
• JVMLS ➤ https://openjdk.org/projects/mlvm/jvmlangsummit/
• OpenJDK ➤ https://openjdk.org
*Tags* #Java #OpenJDK #Valhalla