Valhalla Arrives: JDK 28 Finally Gets Its Legendary Value Types
After years of anticipation, Project Valhalla's Value Classes and Objects (JEP 401) are finally confirmed for JDK 28. This isn't just an update; it's a fundamental shift in how Java handles data, promising unparalleled performance gains.

- 1For over a decade, Project Valhalla has been the JVM's whispered promise of a future where data isn't just objects with identities, but efficient, identity-less values.
- 2Here are the key concepts JEP 401 brings to the table, reshaping how we think about data in Java:
- 3Valhalla isn't just a technical upgrade; it's a philosophical one.
- 4Project Valhalla officially began in 2014.
On June 15, 2026, a collective gasp (and perhaps a few 'I told you so's) echoed through the Java community. Oracle engineer Lois Foltan confirmed what many had started to consider a myth: JEP 401: Value Classes and Objects is officially on its way, targeting JDK 28. It's like waiting for a band's legendary, never-released album to suddenly drop – the anticipation was real, and the implications, well, they're nuanced, to say the least.
The Long-Awaited Arrival of Value Types
For over a decade, Project Valhalla has been the JVM's whispered promise of a future where data isn't just objects with identities, but efficient, identity-less values. This isn't just a syntax sugar; it's a fundamental re-architecture of how the Java Virtual Machine handles data, aiming to close the infamous "primitive gap." Think of it as Java finally getting its data structures to behave less like a linked list of individual boxes and more like a tightly packed array.
"The change is so large, it feels like we're finally seeing Ragnarok arrive for the JVM. But in a good way, mostly."
This isn't about making Java more like C++; it's about making Java better at being Java, especially for modern, data-intensive workloads. The goal? Performance, pure and simple, achieved through memory layout optimizations that were once unthinkable in the object-centric JVM.
Valhalla's Core Innovations
Here are the key concepts JEP 401 brings to the table, reshaping how we think about data in Java:
- Value Objects: These aren't your grandpa's objects. They're immutable data carriers without identity, meaning two value objects are "equal" if their contents match, not just their memory addresses. Think of them as souped-up primitives, but for more complex data like a
PointorMoney. - Primitive Classes: This is the real game-changer. Imagine defining your own primitive types – like a
ComplexNumberorMoney– that behave with the efficiency ofintorlong. It's about data density and flat layouts, ditching object headers and pointers. - Inline Types: This is the implementation detail that makes value objects and primitive classes possible. Data gets stored directly "inline" within other objects or arrays, removing the overhead of separate object allocations and references. It's a memory magician, making data contiguous.
- Specialized Generics: Currently, generics work with objects, leading to boxing/unboxing overhead for primitives. Valhalla aims to allow generics to specialize for value types, bringing performance benefits to collections of things like
PointorMoney. No more unnecessary wrapping. - Enhanced JVM Performance: All these changes are designed to make the JVM run faster and use less memory. By eliminating object headers, reducing pointer indirection, and enabling JIT optimizations that weren't possible before, Valhalla promises a significant uplift for data-intensive applications.
📌 Key Point: Valhalla is less about new features for everyday coding and more about a fundamental shift in how the JVM handles data, making Java incredibly efficient for modern compute patterns.
The Cultural Shift: What Developers Should Know
Valhalla isn't just a technical upgrade; it's a philosophical one. For decades, Java has ingrained the concept of object identity into every developer's mind. With value types, we're asked to embrace an alternative: data is its value. This shift encourages a more data-oriented design approach, where immutability isn't just a best practice, but an inherent characteristic.
It means new considerations when designing APIs and data models. Suddenly, copying a value type isn't a deep clone operation, but a simple bitwise copy – fast and efficient. This focus on data density and immutability will likely lead to less garbage collection pressure and more predictable performance, allowing developers to build systems that scale with greater ease. The days of chasing down mysterious NullPointerExceptions related to empty object references might even become slightly less frequent, as value types inherently encourage non-null data.
Key Facts
- Project Valhalla officially began in 2014.
- JEP 401: Value Classes and Objects was confirmed for OpenJDK main on June 15, 2026.
- Its integration targets JDK 28.
- The primary goal is to close the "primitive gap" and enable flat data layouts, boosting performance.
Conclusion
The arrival of Project Valhalla in JDK 28 marks a pivotal moment for Java. It's not just about a few new keywords; it's a deep-seated evolution of the platform's core memory model, promising a new era of performance and efficiency. As developers, we're not just getting faster code; we're being nudged towards a more data-conscious way of building applications. How will this decade-long journey reshape the next ten years of Java development? Only time, and a lot of compiled code, will tell.
FAQ
- What is Project Valhalla? Project Valhalla is a long-running OpenJDK initiative aimed at enhancing the Java language and JVM to support value types, which are identity-less, immutable data carriers that can be stored in flat memory layouts for improved performance.
- What are "Value Classes and Objects"? This refers to JEP 401, the specific proposal from Project Valhalla that introduces the core concepts of value objects and primitive classes into Java, allowing developers to define their own efficient, identity-less data types.
- How will Valhalla improve Java's performance? By allowing data to be stored inline without object headers and pointers, Valhalla reduces memory footprint, improves cache utilization, and enables the JVM's JIT compiler to perform more aggressive optimizations, leading to significant speedups.
- When can developers start using Valhalla features? JEP 401 is targeting JDK 28. Once JDK 28 is officially released, developers will be able to experiment with and integrate value classes and objects into their applications.
Rate this article
Discussion
Leave a comment
Related topics
Keep reading
Latest from DailyForage

Pump.Fun's Bounties: A Grifting Loophole Enticing Indian Crypto Enthusiasts
Pump.Fun's bounty platform lures Indian crypto enthusiasts with promises of easy money for promoting meme coins. But the rewards are paid in the very coins being promoted, creating a perilous, self-referential grift that inflates value artificially.

Texas Data Breach: A Stark Warning for India's Digital Ascent
4 min read
NEET Re-Exam's Chopper Drop: A Seven-Layer Security Spectacle
4 min read
Finova's RFP: How a Spreadsheet Beat 97% AI Coverage in India
5 min read
TesterArmy's AI Agents: 6 Ways They're Changing App Testing
4 min read
Tim Cook Confirms Apple Price Rises Amid Surging Memory Chip Costs
5 min readEnjoy this article?
Get fresh stories delivered to your inbox every morning.