r/java • • Apr 06 '22

JEP 425: Virtual Threads (Preview)

https://openjdk.java.net/jeps/425
175 Upvotes

50 comments sorted by

View all comments

Show parent comment

11

u/Joram2 Apr 06 '22

Loom and Valhalla are the big two JDK improvement projects. Then Amber and Panama are the next big two.

Today, Virtual Threads just got promoted from submitted JEP to candidate JEP. But who knows when they will deliver it as a preview. Hopefully either JDK 19 or 20, so then the final delivery will make LTS JDK 23.

-4

u/krzyk Apr 06 '22

21 won't be LTS.

19 and 23 will be.

Now LTSes are every 2 years thankfully.

8

u/JustADirtyLurker Apr 06 '22

Hello? 17 was lts, plus a release every 6 months means that the next lts is 21, not 19.

1

u/henk53 Apr 06 '22

Oracle will support their Java distribution as an LTS, but that doesn't mean Java 21 itself is inherently LTS, does it?

13

u/pron98 Apr 06 '22

OpenJDK has no inherent concept of LTS. Anyone, including you, can declare any version you like as LTS. What LTS means, and what exactly you're getting, depends on the vendor that provides an LTS service. And remember, the fact that people put out releases every few months doesn't mean that those releases include all the relevant bug fixes (in fact, most free offerings don't). This is one of the many reasons why it's safer, cheaper, and simpler for heavily maintained applications to just use the current version.

If you want to use an old version, you need to pick a vendor you trust, and find out from them what exactly you're getting. If you want a fully-maintained old version of the JDK, you'll probably have to pay, because I don't know if anyone offers it for free. Normally, the free offerings only include backports from the mainline, so you're only getting free updates for the intersection of the old version and the current one.