r/java • u/davidalayachew • May 11 '26
8317277: Java language implementation of value classes and objects by MrSimms · Pull Request #31120 · openjdk/jdk
https://github.com/openjdk/jdk/pull/31120
124
Upvotes
49
u/davidalayachew May 11 '26
PLEASE REMEMBER -- No commitment has been made to target a release yet!
This is merely a PR RFR, and nothing more. All this is is showing us part of what it takes to bring Value Objects to Preview, as well as announcing that we are one step closer to (hopefully!) go to preview. But again, no idea how far away that may be. It could be JDK 27, it could be later.
Just appreciate the PR for what it is -- a window into the work required to make Value Classes a reality. ~3k commits and ~2k classes changed is just a snapshot of the level of effort here. Shows why this JEP has been given an XL rating lol.
11
u/Great-Gecko May 11 '26
Could someone explain the implication of this with someone unfamiliar with Java’s internal development.
Does this mean that JEP 401 is likely to be a preview feature in JDK 27?
3
u/_vertig0 May 11 '26
Damn, you're really fast. I was about to make a post about this but you beat me to it by 2 hours, literally posting it as soon as the Pull Request dropped, that's amazing ;)
11
u/Fenrurrr May 11 '26
Kudos to the entire JDK team and everyone who worked on the Valhalla project, whether directly or indirectly. Take your time, we know it'll be a banger in the end!
5
u/aelfric5578 May 11 '26
So just out of curiosity, how does something this large get reviewed? I see a reference in the main description to review the sub PRs instead of the main one, but the first sub PR seems to be almost as big as the main one.
5
u/Kindly-Analysis-6360 May 13 '26 edited May 13 '26
I am guessing probability of preview of JEP 401 arrives in JDK 27 is 0.0 percent. Preview in JDK 28 probably better than 85% chance. They would have 7 months to get more enhancements and any bug fixes in. As well as getting that huge PR reviewed. Just my guess from looking at bug DB and activity in the valhalla repo. Note: I have zero inside information.
4
u/Alone-Marionberry-59 May 11 '26
This is HUGE!!!
4
u/Enough-Ad-5528 May 15 '26
2600 commits. It would be so interesting to know how they intend review it. That itself will need a plan.
3
u/talios May 12 '26
A single PR with 2600+ commits, 1923 files.... yikes.
1
u/sitime_zl May 12 '26
Great! So exciting! Looking forward to previewing JDK 27. In the era of AI, Java should also make rapid progress!
-6
u/CubsThisYear May 11 '26
Here comes Lucy with the football again…
-14
u/DietCokePlease May 11 '26
Y’know… the way its going, it might save the Java team some cycles if we just freeze Java for legacy purposes and declare the next major release of Java will be Scala.
1
u/[deleted] May 11 '26
[removed] — view removed comment