Introduction
The six-month cycle, the long-term support releases, and local type inference.
What Java Has Gained Since Version 8
You open a recent repository and the code no longer looks like what you used to write. A class fits on one line and has no visible field or accessor. A switch returns a value instead of assigning a variable, and there is no break anywhere. A declaration starts with var without the type appearing anywhere. A SQL string spreads over twelve lines without a single concatenation. None of this is a third-party library: it is standard Java, added between version 9 and version 21, while your application stayed on 8.
The concrete problem is not aesthetic. It is budgetary and operational. Java 8 is no longer patched for free by most distributions; your Docker image ships a virtual machine whose security fixes are now paid or nonexistent. The libraries you use release major versions that require Java 17 at a minimum: Spring Boot 3, Hibernate 6, the recent database drivers. Every month spent on 8 increases the cost of migrating, because you fall behind on three fronts at once: the platform, the dependencies, and your team's coding habits.
Comments
Comments are powered by GitHub Discussions
Sign in with GitHub to join the discussion