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

6

u/morhp Professional Developer Oct 11 '19

We are developing with Java 8 because we develop server software and we aren't sure that all users have upgraded to a newer Java version. So better be safe than having to deal with lots of problems.

In another project, we use a library that only works with Java 8 for some stupid reason (they use reflection to access JVM internals), so we can't update there until that is fixed.

New projects are developed with Java 11 or 12 I believe.

1

u/wildjokers Oct 14 '19

We are developing with Java 8 because we develop server software and we aren't sure that all users have upgraded to a newer Java version. So better be safe than having to deal with lots of problems.

If you develop server software why is it a concern if users have upgraded to a new java version? Or for that matter if they even have java installed?

Or did you mis-type and meant desktop software?

1

u/morhp Professional Developer Oct 14 '19 edited Oct 14 '19

Users in my case are the users of our software (essentially the server admins), not the end users.

1

u/wildjokers Oct 14 '19

I see. Can you just list Java 11 as a system requirement and then they can just install it?

We now offer docker images to our clients so the appropriate version of java is in the image. Not all clients use them so the ones that don't just have to keep Java updated to the version we require.

2

u/morhp Professional Developer Oct 14 '19

I see. Can you just list Java 11 as a system requirement and then they can just install it?

That will happen sooner or later, but currently there still are lots of old java installation we know of (as we also do support), where the server owners fear that updating Java will break something, or where their it department is overworked, so they wouldn't really be happy if we forced them to update now without an obvious incentive (as the current version "works fine").

This may change when an important security issue appears in Java 8 or when a library starts depending on a newer Java version ow when Project Valhalla is released and we can have better primitives and lower memory usage.