r/ProgrammerHumor • • 8d ago

Meme corporateJavaEneginnersBeLike

Post image
7.9k Upvotes

105 comments sorted by

View all comments

469

u/Shawn11564 8d ago

Every company ive worked for has just completed their upgrades from Java 8 to 17 in the past couple years lol

97

u/pantagathus 8d ago

Yep the last team I left I had moved most stuff to Java 17 and Java 21. Still a few stragglers on Java 11.

48

u/Captain-Barracuda 8d ago

Really don't understand why not move from 11 to 17. There weren't any breaking changes iirc. It's the jump from 8 to 9 that is scary.

19

u/Shawn11564 8d ago

I've seen it as 11 was kind of the easy step for people who knew they should upgrade but weren't ready for the big jump to 17+ yet. It's only ever a handful of projects on it that are the ones you barely use and your manager felt was the safest to test on.

1

u/pantagathus 7d ago

Not enough tester capacity.

10

u/_PM_ME_PANGOLINS_ 8d ago

Java 25 is the LTS now.

16

u/WernerderChamp 8d ago

17, 21 and 25 are all active LTS versions at most vendors. Althrough 17 will lose a lot of support next year, we are switching all Java 17 services to 25 now.

2

u/Wdtfshi 6d ago

Not sure if a coincidence or not but those are also the 3 versions (the modding) Minecraft community uses

17 for 1.20.1

21 for 1.21.1

25 for anything above

33

u/OldKaleidoscope7 8d ago

It's because Java doesn't like to keep breaking their core API in newer versions. Updates use to be nice and easy, the biggest problem for 8 is the Java EE changes that not everyone uses

7

u/Snakestream 8d ago

It's been a while, but I believe the main hurdle from upgrading 8-->9 was that there was a major design rework that changed how a lot of things work. They introduced the whole module concept to Java and this also reflected downwards to a lot of utility dependencies and such. They also reorganized a large number of core libraries and just generally shook up a ton of things. Upgrading was an enormous pain in the ass because changing the version would pretty much break everything in your project and require going over every import and method call.

10

u/OldKaleidoscope7 8d ago

Actually not if you use Maven or Gradle. Yes the modules exist now, but the imports didn't change and the build tools abtract this for you

4

u/Zeikos 7d ago

I never worked on Java, but doesn't it work like any typed compile language in which the compiler tells you precisely what's broken and you can go through it?
Sure it takes time, but it's not like guesswork.

3

u/oldsecondhand 7d ago

The issue was that the compiler complained about one module problem at a time when there were many.

2

u/oldsecondhand 7d ago

For me upgrading to 9 was just adding a few security exceptions for old dependencies in the command line.

2

u/KagakuNinja 5d ago

The problem with Java 9 was that Jigsaw reorganized the structure of the JRE runtime libraries, and some fancy frameworks were inappropriately dependant on the directory structure.

If the libraries you used did not violate encapsulation of the JRE, then upgrades are pretty easy in my experience.

6

u/_PM_ME_PANGOLINS_ 8d ago

The Java EE changes are unrelated to the Java version.

10

u/HanndeI 8d ago

Legit, we were on java 8 for nearly 15 years and last year just updated the projects lol

4

u/Shawn11564 8d ago

Same here, we're on the tail end of the industry-wide "Modernization" effort which only really seems bad in this exact situation lol

1

u/Chance-House-8065 7d ago

We have a service here in Java 1.4. We can't migrate because oracle wants money. So we wrote it now in .net. markets using the old version does not receive support.lol

1

u/maybecatmew 7d ago

I was about to comment lol it's java 8 all the way down

1

u/NomDePlumeOrBloom 7d ago

Last month, lol.

1

u/Tobar26th 6d ago

Still working Daily with Java 8.

There’s talk we may move to eleven in a couple of years…

1

u/Still_Bit_7527 8d ago

Nah still using 8. No major reason to update either, it works