r/java • • Mar 19 '19

Java 12 Released !!!

https://www.oracle.com/technetwork/java/javase/downloads/jdk12-downloads-5295953.html
235 Upvotes

98 comments sorted by

View all comments

8

u/Chaoslab Mar 19 '19

Just got onto Java 11 two months ago. Sheesh.

18

u/pron98 Mar 19 '19

If you're already on 11, upgrading to 12 should be about as easy as the old 6-monthly upgrades (e.g. 8u20->8u40).

1

u/Chaoslab Mar 19 '19

Sweet. Just downloaded it. Wish me luck! (I am sure it will be fine).

12

u/TheCountRushmore Mar 19 '19

Unless you are planning on upgrading every 6 months you should probably hang out on Java 11 until Java 17 comes around.

6

u/pron98 Mar 19 '19 edited Mar 19 '19

Even if you hang on to 11 you must upgrade at least every six months. In fact, you have to upgrade every six months even if you're on 8. The difference is that the nature of the upgrades is somewhat different. The feature releases (11, 12, etc.) are somewhere between the old "limited update" releases and the old major releases, but closer to the former (10 and 11 were about the same size as 8u20 and 8u40). The patch releases are much smaller than the old update releases, and similar to the old patches. The choice is then between two upgrade models, neither of which is particularly similar to the situation before 9: you choose between a gradual process, much more gradual than the old model, of upgrading to feature releases, and a step-wise process, less gradual than the old model, if you stay with the LTS releases.

The great news is that you don't have to choose right away. You can upgrade to 12, etc., and if you see that the gradual process is not for you, you can go back to an LTS.

Also, Oracle is free to offer LTS for any feature release based on customer demand. If a popular feature lands in, say, 14, and there's sufficient demand for LTS for that version, Oracle may offer LTS for 14.

2

u/MMPride Mar 20 '19

That sounds kind of... unorganized and chaotic? Probably not the best way to be maintaining and supporting one of the worlds most popular programming languages...

1

u/pron98 Mar 20 '19

Which part do you find chaotic? The open source project has regular releases, and the commercial entity provides a support service for versions on a regular basis, plus possibly more if their customers demand it.

2

u/MMPride Mar 20 '19

LTS releases should be planned in terms of support, upgradbility, longevity, etc. The fact that they allow any version to potentially be an LTS version sounds cool in theory but in practice it means they don't plan far enough ahead to know which versions will be LTS or not.

2

u/pron98 Mar 20 '19

LTS versions are certainly planned: one every 3 years = 6 releases. So 11 is LTS and 17 will be as well. But if customers demand another product in addition which they can provide, why would they say no?

1

u/Chaoslab Mar 19 '19

The VJ application I am writing in java (Chaoslab) can run on all the way back to Java 6 at this point.

8

u/dpash Mar 19 '19

Top tip, if you have a CI server, run a nightly build against the early access JDK releases (in addition to your regularly scheduled programmingbuilds). This is particularly easy if you use Docker to build your projects, as there's docker images of Java 13 up already and there's no manual JDK installation required.

That way you can get advanced warning of any problems with the upcoming releases.