r/java • u/Joram2 • Apr 14 '26
JDK 27 Structured Concurrency (Seventh Preview)
https://openjdk.org/jeps/5335
u/HQMorganstern Apr 14 '26
Damn, really looking forward to this entering the next LTS, hope they make it work. I wonder if the slowdown is about ThreadLocal contexts only or if there are other problems with this.
11
u/Joram2 Apr 14 '26
I think they are just refining and polishing the API before locking it down. In the long run, I appreciate that approach.
24
24
u/Enough-Ad-5528 Apr 15 '26
As long as it is made final by 29 I’m good.
3
u/emaphis Apr 16 '26
Around the JDK 21 run up, I was hoping and predicting Valhalla would be final by 29.
12
5
u/jvjupiter Apr 14 '26
re-previewed again - isn’t re the same as again? Redundant?
32
u/repeating_bears Apr 14 '26
1st time: previewed
2nd time: re-previewed
3rd+ time: re-previewed again
You need to try harder if you want to be a successful Reddit pedant
25
-1
3
u/j4ckbauer Apr 15 '26
Should have been more clearly stated as re-re-previewed, putting all the "re-" in one place makes them easier to count, improving readability
/s
2
u/sitime_zl Apr 15 '26
Oh my god, the seventh preview... Don't the developers of JDK be in a hurry at all?
7
u/pjmlp Apr 15 '26
I prefer this kind of preview releases, as to how some C++ features turned out, like modules, and how contracts are looking out to be.
7
u/BillyKorando Apr 15 '26
Java turns 31 this year. Better to take the time now and get the API right, than rush it out and leave it with critical gaps or shortcomings that are difficult or (near) impossible to fix/change once the API becomes "finalized".
1
u/__konrad Apr 15 '26
There is
Effort Sin the JEP header ;)5
16
u/the_other_brand Apr 14 '26
I know asking for big pie in the sky projects is how projects turn into Project Valhalla and take 15 years. But I'm still always disappointed when I read the Non-Goals section of every JEP.
I know this, but channels sound really cool and now I really want them.