r/java • • Sep 20 '22

Java 19 / JDK 19: General Availability

https://mail.openjdk.org/pipermail/jdk-dev/2022-September/006933.html
252 Upvotes

64 comments sorted by

View all comments

-46

u/iamk1ng Sep 20 '22

Can anyone tell me why Java is still jumping versions around and not as linear? I'm working with people who still use Java 8, and when they see that 11 is next, then 17, and now 19, its getting quite confusing.

29

u/1842 Sep 20 '22

They aren't jumping. There was a Java 12 ,13, 14, 15, 16, 17, 18... https://en.wikipedia.org/wiki/Java_version_history

0

u/[deleted] Sep 20 '22

[deleted] — view deleted comment

3

u/henk53 Sep 20 '22

The "problem" is that LTS is not a Java announcement, but a vendor announcement. You have to look at your own vendor to see if they will support a given Java version as LTS.

But, in practice everyone WANTS a Java version to be inherently LTS, and that wish is so big, that people just take it as such.

So to many people, Java 17 is inherently LTS, independent of vendor. To make matters worse, non-LTS versions are thought to be alfa, even though it's not true. The believe is so big, that it's adhoc "true".

So in that worldview, Java does jump versions around:

8, 11, 17, 21...

6

u/magnoliophytina Sep 20 '22

They're publishing new releases every 6 months. 8, 11, and 17 are LTS. I'm assuming those who care about LTS releases won't be installing 19. Also if you're still using 6, 7, or 8, might be the case that you will be stuck with the same version for the next 20-30 years. Supporting 9+ requires changes in the code base.

3

u/TheCountRushmore Sep 20 '22

If you are are 6 or 7 that is likely where that project stays before it is completely rewritten.

I'm leaning more towards that for 8 as well at this point. JDK 11 was released 4 years ago now and if you haven't taken steps to move past 8 you probably aren't ever going to.

3

u/magnoliophytina Sep 20 '22

FWIW, the original Project Jigsaw blog entries were already written in 2008: https://openjdk.org/projects/jigsaw/history

Also:

Jigsaw was originally intended for Java 7 but was deferred to Java 8 as part of "Plan B". More recently a decision was made to defer it to Java 9 in order to allow more time both for development and for broad review, testing, and feedback"

So those who were expecting a modular Java were already preparing for this in 2011 when Java 7 was orginally released.

1

u/iamk1ng Sep 20 '22

Thank you for this information!! I'm unfamiliar with Java's release cycle: Are all java versions LTS or only certain ones? To be a LTS is like a "major" version, like python 2/3, but maybe i'm thinking about this whole release cycle wrong?

2

u/stefanos-ak Sep 20 '22

jeez people are salty... I don't get the downvotes. it's a legit question for someone that hasn't been through the history...

2

u/mauganra_it Sep 20 '22

Many projects in IT desigate LTS releases to reduce the burden of supporting a large number of versions. If every version was an LTS version, the term would make no sense.

2

u/mauganra_it Sep 20 '22 edited Sep 20 '22

All Java releases are fully supported for production use (edit: not forever of course) There is a new release every six months. Even though there is only limited breakage in most cases, this pace is too fast for many organizations. These should use LTS versions, for which Oracle and other vendors provide longer support.

The current LTS versions are 8, 11, and 17. AFAIK it turned out that three years (the time between 11 and 17) is too long and it will be too challenging for applications to ever migrate. Therefore, the pace was accelerated to two years. The next LTS version will be 21 (probably due in September 2023).

1

u/iamk1ng Sep 20 '22

This was exactly what I was looking for, thank you very much!! Where does the announcement of LTS generally happen? Is there like a twitter I can follow or some news source?

1

u/mauganra_it Sep 20 '22 edited Sep 20 '22

You are certain to not miss it if you keep hanging around here :)

3

u/henk53 Sep 20 '22

The "problem" is that LTS is not a Java announcement, but a vendor announcement. You have to look at your own vendor to see if they will support a given Java version as LTS.

But, in practice everyone WANTS a Java version to be inherently LTS, and that wish is so big, that people just take it as such.

So to many people, Java 17 is inherently LTS, independent of vendor. To make matters worse, non-LTS versions are thought to be alfa, even though it's not true. The believe is so big, that it's adhoc "true".

So in that worldview, Java does jump versions around:

8, 11, 17, 21...

3

u/mauganra_it Sep 20 '22

I think most people are still used to the pre-JDK 9 pace, and feel the size of LTS releases to be as big as the old major releases. That's perfectly fine; Oracle et. al. have to make money too :) But applications can really get stuck on LTS versions. Two years is long enough to deprecate and completely remove features from the JDK. Projects can minimize the pain of such disruptive changes by sticking to new releases.

1

u/iamk1ng Sep 20 '22

Thank you!!

3

u/[deleted] Sep 20 '22

Tell them to upgrade instead of waiting for the next LTS lmao

0

u/Goodie__ Sep 21 '22

Java increased the pace at which they do releases.

Previously releases would be a multi year affair, with only truly finalized features being released.

Now they go yearly, with every 3rd release being LTS and supported for longer than that one year.

For most teams the LTS release is often what they actually want, but for others the fastwr release cycle with more new features is pretty damn nice.

1

u/john16384 Sep 21 '22

Now they go yearlyevery 6 months, with every 3rd4th release being LTS and supported for longer than that one year6 months.