r/javahelp • • Oct 11 '19

Why we still use java 8

Hey everyone
I know that new releases of java bring us new compilers and vm optimization and new language features.

So, why developers still use java 8 for their projects ?

PS: sorry if question is weird or stupid. do not hate me in comments pls.

27 Upvotes

51 comments sorted by

View all comments

0

u/JournalDev Oct 12 '19

There are many reasons for it.

  1. Module System - it breaks almost every enterprise level project that uses third party libraries. And it’s hard to fix them because it’s tedious job to find all the libraries that caused the issue, then add them to module and so on.

  2. Money - this is a common reason for any tech upgrade. Most of the app owners don’t feel there are many new features that warrants the update.

  3. Oracle Licensing - another major reason to stay away from licensing trap as long as possible.

  4. 6 Months Releases - with all the frequent releases, there are not many language specific features coming in every release. Even if we update to Java 13, the latest version. We would be 2 major versions behind in one year.

2

u/nutrecht Lead Software Engineer / EU / 20+ YXP Oct 12 '19

Module System - it breaks almost every enterprise level project that uses third party libraries. And it’s hard to fix them because it’s tedious job to find all the libraries that caused the issue, then add them to module and so on.

That's a gross overstatement. I've done a few migration projects on large enterprise level projects and the generally the only ones with issues were the ones simply using outdated Java EE application servers (fuck WebSphere).

The code itself is almost never an issue. Generally the only thing that breaks is that a few Java EE dependencies are not part of Java SE anymore and were moved into other modules. But that's just a matter of adding to the dependencies.

In my experience "It's hard" is really a matter of people trying another JVM version, seeing some module errors they don't understand, and going "can't be bothered". Which sucks; because you are simply building technical debt you will have to fix anyway.

Money - this is a common reason for any tech upgrade. Most of the app owners don’t feel there are many new features that warrants the update.

This is silly. They main reason to keep up to date is security. Any idea how much money a security breach can cost?

Oracle Licensing

Complete non-issue and I'm surprised to see this from a Java developer. How can you, in 2019, not know that Java is open source?

6 Months Releases

Again an argument from ignorance. LTS releases are not 6 months apart. Besides; better to make a small upgrade every 6 months than a huge one every 5 years.