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.

1

u/wildjokers Oct 12 '19
  1. You can easily ignore modules. They aren't required.

  2. The main reason and only valid one you have.

  3. Licensing is a non-issue. Use OpenJDK. If you want/need support pay a vendor that offers java support (Oracle, Azul, etc)

  4. There is no such thing as a major release anymore so it is impossible to be two major versions behind.

-1

u/JournalDev Oct 12 '19
  1. If you are ignoring the most important feature of Java 9, then what’s the point in upgrading. Just for namesake?

  2. There is no official support for OpenJDK, bigger companies like to have official support even if they have to pay for it.

  3. I don’t get your point. After one year, latest version will be Java 15. So if you have a project on Java 13, you will be 2 version behind.

1

u/wildjokers Oct 13 '19

Every java release comes with bug fixes and security updates. Modules was not the only thing added to 9. In fact it came with a lot of new features. Improved HTTP client, JShell (very handy!), improved java doc, etc.

Correct, if you want support you can pay for it. Java has always been like this. Nothing has changed. If you don’t need support use OpenJDK. I have been with 2 large companies (20,000+ employees) and neither required a support contract for Java.

In your previous comment you said “major versions”. There is no such thing as major releases in Java anymore. Just smaller more frequent releases. There is no need to go to every new release now, but should probably think about it every few releases. It is definitely time to be heading toward 11.