# Should you adopt Java 12 or stick on Java 11?

DevFeed: [Should you adopt Java 12 or stick on Java 11?](<https://devfeed.tech/articles/should-you-adopt-java-12-or-stick-on-java-11-22006.md>)

Original publisher: [Read original article](<http://blog.joda.org/2018/10/adopt-java-12-or-stick-on-11.html>)

Author: Stephen Colebourne (noreply@blogger.com)

Published: 2018-10-31T07:02:00Z

Content type: opinion

Language: en

Sources: [Stephen Colebourne](<https://devfeed.tech/sources/stephen-colebourne.md>)

Topics: [Java](<https://devfeed.tech/topics/java.md>), [openjdk](<https://devfeed.tech/topics/openjdk.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [IntelliJ IDEA](<https://devfeed.tech/topics/intellij-idea.md>), [Maven](<https://devfeed.tech/topics/maven.md>), [Spring Framework](<https://devfeed.tech/topics/spring-framework.md>)

Tags: [amazon-aws](<https://devfeed.tech/tags/amazon-aws.md>), [api](<https://devfeed.tech/tags/api.md>), [bug-fixes](<https://devfeed.tech/tags/bug-fixes.md>), [java](<https://devfeed.tech/tags/java.md>), [java-8](<https://devfeed.tech/tags/java-8.md>), [jvm](<https://devfeed.tech/tags/jvm.md>), [lts](<https://devfeed.tech/tags/lts.md>), [openjdk](<https://devfeed.tech/tags/openjdk.md>), [oracle](<https://devfeed.tech/tags/oracle.md>), [production](<https://devfeed.tech/tags/production.md>), [releases](<https://devfeed.tech/tags/releases.md>), [risks](<https://devfeed.tech/tags/risks.md>), [security](<https://devfeed.tech/tags/security.md>), [security-patches](<https://devfeed.tech/tags/security-patches.md>), [train](<https://devfeed.tech/tags/train.md>), [upgrade](<https://devfeed.tech/tags/upgrade.md>)

## AI overview

Java 12 adoption requires readiness to upgrade continuously: the excerpt says each six-month release receives only about six months of security patches and becomes obsolete after seven months, leaving roughly one month to test and deploy the next version. Moving through Java 12-17 may disrupt code through bytecode, specification and API changes; the author argues this risk is greater than routine Java 8 updates. Teams should check whether development resources, IDEs, build and analysis tools, dependencies, frameworks, CI and hosting can keep pace. AWS Lambda is cited as a blocker because it had not adopted Java 9, 10 or 11 at the time described; Spring and Liferay are cited as focusing official support or certification on LTS releases. Skipping interim releases until Java 17 may miss deprecations before APIs are removed. The author recommends inventorying current and likely dependencies and weighing new features or possible performance gains against upgrade risk. The excerpt presents a Java 12 development/production-on-later-releases middle ground, but says it still carries compatibility uncertainty.

## Source excerpt

Should you adopt Java 12 or stick on Java 11 for the next 3 years? Seems like an innocuous question, but it is one of the most important decisions out there for those running on the JVM. I'll try to cover the key aspects of the decision, with the assumption that you care about running with the latest set of security patches in production. TL;DR, It is vital to fully understand and accept the risks before adopting Java 12. The Java release train There is now a new release of Java every six months, so Java 12 is less than five months away despite Java 11 having just been released. As part of the process of moving to more frequent releases, certain releases are designated to be LTS (long term support) and as such will have security patches available for four years or more. This makes them "major" releases, not because they have a bigger feature set but because they have multi year support. It is expected that Java 11 patches (11.0.1, 11.0.2, 11.0.3, etc.) will be smaller and simpler than Java 8 updates (8u20, 8u40, 8u60, etc.) - Java 11 updates will be more focused on security patches, without the internal enhancements of Java 8 updates. Instead, Oracle want us to think of Java 12, 13, 14 etc. as small upgrades, similar to an imaginary Java 11u20, 11u40 etc. To be blunt, I find this nonsensical. Senior Oracle employees have repeatedly argued that updates such as 8u20 and 8u40 often broke code. This was not my experience. In fact my experience was that update releases primarily contained bug fixes. The only break I can remember was the addition of --allow-script-in-comments to Javadoc, which isn't a core part of Java. As a result, I have never feared picking up the latest update release - and this has been a core benefit of the Java platform. Drilling down into why update releases tend to cause no problems, lets examine the differences between release types: Model Old model New model Upgrade Java major releases Java update releases Java release train Java patches Freque