Java 28 starts to take shape

The Java ecosystem is bracing for a significant evolution as the OpenJDK community outlines the roadmap for JDK 28, the next major feature release scheduled for general availability in March 2027. Following the recent arrival of JDK 27 in September 2026, the proposed inclusion of ahead-of-time (AOT) code compilation marks a pivotal moment in the ongoing effort to modernize the Java Virtual Machine (JVM) for cloud-native, serverless, and containerized environments. As a non-Long-Term Support (LTS) release, JDK 28 will receive six months of active support from Oracle, positioning it as a testing ground for experimental features that prioritize performance, memory efficiency, and developer productivity.
The Evolution of Performance: AOT Compilation
The most recent addition to the JDK 28 candidate list, ahead-of-time code compilation, represents a strategic shift in how Java addresses startup latency. Traditionally, the JVM utilizes Just-In-Time (JIT) compilation, where bytecode is interpreted and eventually compiled into native machine code while the application is running. While this allows for highly optimized code paths based on real-time profiling, it introduces "warmup" periods where performance is suboptimal.
According to the proposal under JEP 544, AOT compilation aims to mitigate this by generating optimized native code during the build or deployment phase. By making this native code instantly available upon JVM startup, developers can expect a significant reduction in the time required for an application to reach its "peak performance" state. This is particularly crucial for modern infrastructure patterns, such as Function-as-a-Service (FaaS) or microservices running in Kubernetes, where rapid scaling and short-lived execution environments are the standard. The proposal explicitly highlights that these performance gains should be achievable without requiring developers to refactor existing code, libraries, or frameworks, maintaining the "write once, run anywhere" philosophy that remains central to Java.
The Roadmap of JDK 28
JDK 28 is expected to be a milestone release, balancing long-awaited language enhancements with architectural upgrades. The feature set currently under consideration represents a multi-year effort to modernize Java’s memory model and data handling capabilities.
Value Objects and Memory Efficiency
Among the most anticipated features are Value Objects, which are designed to eliminate the performance overhead associated with object headers in Java. In standard Java, every object carries metadata—such as locks and identity—that consumes memory. For data-heavy applications, this overhead becomes a bottleneck. Value Objects will allow developers to define classes that lack object identity, enabling the JVM to store these entities more compactly in memory, potentially leading to significant reductions in heap usage and improvements in cache locality.
Generational Garbage Collection
Continuing the work initiated in earlier releases, JDK 28 is slated to refine generational garbage collection strategies. By segregating objects based on their expected lifespan, the garbage collector can optimize its cleanup cycles, focusing more frequently on "young" objects that are likely to become garbage quickly. This reduces the frequency of "stop-the-world" pauses, ensuring that large-scale Java applications remain responsive under heavy, fluctuating workloads.
Strict Field Initialization and JSON Support
The proposal for strict field initialization aims to improve code reliability by enforcing more rigorous checks during object construction, effectively reducing the risk of null pointer exceptions and uninitialized state bugs. Furthermore, the inclusion of a simple, built-in JSON API reflects the community’s acknowledgment that JSON has become the lingua franca of web services. By standardizing JSON processing within the JDK, Oracle aims to reduce the reliance on third-party libraries for basic data serialization and deserialization, simplifying the dependency tree for many Java projects.
Cryptographic Standards
As security threats evolve, so too does the Java platform. JDK 28 plans to introduce native support for PEM (Privacy-Enhanced Mail) encodings for cryptographic objects. This will streamline the process of handling keys, certificates, and other sensitive materials, moving away from legacy formats that have historically been cumbersome to implement within the standard library.
Chronology of Recent Java Releases
The rapid cadence of Java releases—occurring every six months—has transformed the landscape of the platform since the move to a time-based release model in 2017.
- JDK 21 (September 2023): An LTS release that introduced Virtual Threads (Project Loom), fundamentally changing how Java handles concurrency.
- JDK 22 (March 2024): Continued the refinement of foreign function and memory APIs.
- JDK 23 (September 2024): Focused on primitive types in patterns and enhancements to the Z Garbage Collector (ZGC).
- JDK 24 (March 2025): Continued exploration into scoped values and structured concurrency.
- JDK 25 (September 2025): Marked the mid-point of the current development cycle with stability improvements.
- JDK 26 (March 2026): Paved the way for further language-level optimizations.
- JDK 27 (September 2026): The immediate predecessor to JDK 28, focusing on ecosystem stability and security hardening.
- JDK 28 (March 2027): The upcoming release focused on AOT compilation, value objects, and native JSON handling.
Industry Implications and Strategic Analysis
The move toward AOT compilation and the introduction of value objects are not isolated technical decisions; they are direct responses to the competitive pressure Java faces from languages like Go and Rust, which are inherently designed for rapid startup and low memory footprint.
For enterprise organizations, the implications of JDK 28 are significant. The shift toward AOT compilation suggests that the barrier between native applications and managed, bytecode-interpreted applications is thinning. If the JDK can deliver the startup speed of a native binary while maintaining the rich tooling, debugging capabilities, and ecosystem support of the JVM, it could solidify Java’s position in the cloud-native era for another decade.
However, the "feature release" nature of JDK 28 necessitates careful planning for development teams. Because it is not an LTS release, businesses must weigh the benefits of these new performance-oriented features against the maintenance overhead of upgrading their production environments more frequently. Oracle’s support model ensures that those on the non-LTS track have a stable, six-month window to test and implement these features, but organizations with rigid compliance requirements may prefer to wait for the next LTS release to adopt these technologies in mission-critical systems.
Official Responses and Community Sentiment
While specific statements from Oracle leadership regarding JDK 28 are currently framed within the context of the broader OpenJDK roadmap, the community response has been largely positive. Proponents of Project Valhalla—the long-running effort to bring value objects to Java—have expressed optimism that JDK 28 will finally bring these features to a production-ready state.
The developer community has also voiced strong support for the inclusion of a native JSON API. For years, the lack of a standard, lightweight JSON parser has been a frequent point of frustration for developers, often leading to the "dependency hell" associated with managing multiple versions of third-party JSON libraries. By standardizing this functionality, the OpenJDK team is signaling a commitment to improving the "out-of-the-box" experience for Java developers.
Conclusion: The Future of the Platform
As March 2027 approaches, all eyes will be on the OpenJDK early-access builds to see how these ambitious features materialize. The success of JDK 28 will depend on the stability of the AOT compilation process and the seamless integration of value objects into the existing type system. If successful, this release will likely be remembered as the moment Java successfully bridged the gap between its legacy as a massive, high-throughput enterprise workhorse and its future as a lean, responsive language for the modern, distributed cloud.
By prioritizing performance and developer experience without sacrificing the platform’s core stability, the Java ecosystem continues to demonstrate a unique ability to reinvent itself in the face of shifting technological paradigms. Whether it is through the reduction of memory overhead via value objects or the acceleration of startup times via AOT compilation, the trajectory of JDK 28 suggests a platform that is not merely keeping pace, but actively shaping the future of high-performance software engineering.







