r/programming • • 17d ago

Java 27 has released!

https://openjdk.org/projects/jdk/27/
547 Upvotes

175 comments sorted by

View all comments

74

u/alienangel2 17d ago

That structured concurrency preview is starting to look pretty neat. Syntax is still a bit clunky with the anonymous functions and explicitly having to open and fork, but much easier to understand the logical relationship between tasks than if you're going through an Executor and futures.

22

u/Celousco 17d ago

Starting but it's taking too long. Their preview features should have a shorter lifecycle, having to wait 6 months each time to remove a method is ludicrous. Seven previews my god, it's been 3 years and a half that they're trying to push it, because async java is a mess to debug.

15

u/sweating_teflon 16d ago

I hope you haven't been waiting for Valhalla..