I'm curious about the prerequisites for getting Value Classes into Preview mode. With Java 25 set to release this September, which includes JEP 513: Flexible Constructor Bodies, it's noted that this is a foundational step for JEP 401: Value Classes. My question is, what other work do Value Classes depend on? Are there any dependencies still in progress or not yet started? Also, how are dependencies between Project Valhalla JEPs mapped out—do some just not appear in the drafts yet?
1 Answer
From what I remember, there are a couple of major holdups. The sheer scale of change for the Java ecosystem has developers looking for more experience reports. They’re also focused on optimizing both the Java compiler and the JVM to avoid compatibility issues. So it feels like they want to get everything lined up.
That's good to know! But can we start testing the latest version of Value Classes somewhere? Like, which JDK version should we be using to keep our projects running smoothly?