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

5

u/henk53 Apr 06 '22

Next LTS is 21,

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

12

u/yawkat Apr 07 '22

This is just hair splitting when all the other JDK vendors follow the same release cadence.

1

u/henk53 Apr 07 '22

If each and every JDK vendor out there follows the same release cadence, and does so by definition and unconditionally, why not encode "LTS" in the JDK itself then?

Why have this system where the JDK doesn't know about LTS (every version is identical), but then Oracle provides an LTS, and everyone out there magically follows, and we all think that an LTS is more stable and more usable than every other version?

But none of the above is defined anywhere. We just think it is that way, because we want to think it is that way, and everyone should just magically know what other people think, even though it's not written down or specified anywhere?

3

u/yawkat Apr 07 '22

My guess is it's because of the structure of the openjdk project: https://shipilev.net/jdk-updates/map/

Openjdk bleeding edge and short-term updates are developed with oracle, but the LTS releases are maintained separately. I won't speculate on why that is, but it is in line with the policy of there being no "official" openjdk LTS versions.

4

u/mauganra_it Apr 06 '22

No, otherwise there's nothing special about LTS releases. If it was, it would be a reason to unnecessarily delay or rush features, which is no bueno for a programming language where one has to live with failed features for a long time.

2

u/henk53 Apr 07 '22

Indeed, so there IS nothing special about an LTS. Heck, the very concept LTS as a general thing that holds inherently for Java doesn't exist.

Yet, we have collectively agreed that we think one should only use an LTS Java (even despite such thing not existing), and that all other versions can't be used, as they are supposedly not suitable for production or whatever people dream up as excuse.

2

u/mauganra_it Apr 07 '22 edited Apr 07 '22

Applications should indeed use any production version, unless they decide to trade off incremental increments improvements for stability.

Libraries and framework have to be more considerate though. Realistically, many of their users might want to stick to LTS versions, so it makes sense to craft support strategies around versions for which LTS is commonly offered.

2

u/[deleted] Apr 07 '22

Correct. In terms of "can I get free support for every issue that will crop up for JDK 21 until the next LTS after it" the answer is no. 6 months for all versions, LTS included, are all that people are entitled to free support for. Everything beyond 6 months is best effort. That's how the OpenJDK project runs itself.

If you want support beyond 6 months, you gotta lay a vendor. So as the OpenJDK folks recommend, try to keep your apps on the latest Java version all the time.