Living in post Java 8
world
Oleksandr Navka
GlobalLogic
What is post Java 8 world?
What is post Java 8 world?
● 2 releases per year
→ March and September
● Changes in license agreement
→ Oracle JDK not for free
● Changes in support
→ 3 years support for Oracle JDK and 6 month support for OpenJDK
Pros and cons of new Java
Pros:
● Frequent releases
● Small updates
● Fast feedback
Cons:
● OpenJDK support only for 6 month
● Endless migration on new version
Java support
Java support
Oracle JDK - 3 years for LTS version (not free)
OpenJDK - 6 month (free)
Alternative JDK
Alternative JDK Java 8 support
IBM Apr 2022
Azul Mar 2026
RedHat Jun 2023
Amazon Corretto Jun 2023
Migration problems
Removal Of Java EE Modules
javax.activation
javax.activity
javax.rmi
javax.rmi.CORBA
org.omg.*
javax.transaction
javax.xml.bind.*
javax.jws
javax.jws.soap
javax.xml.soap
javax.xml.ws.*
javax.annotation
sun.misc.Unsafe
● Deprecated
● Try to use VarHandle
Bytecode operation libraries
ASM (7.0)
Byte Buddy (1.9.0)
cglib (3.2.8)
Javassist (3.23.1-GA)
The most popular Java frameworks
Spring (5.1)
Hibernate (5.3.3+)
Build tools
Maven: 3.5.0
compiler plugin: 3.8.0
surefire and failsafe: 2.22.0
Gradle: 4.7
New features
Java new features
Shebang
JShell
G1 and Shenandoah GC
var keyword
HTTP/2
Java Async HTTP client
Streams/Optional APIs
Summary
Oracle change license agreement -> move to Open JDK
Find JDK with suitable support
Try to migrate to Java 11 or 12 step - by - step

Living in Post-Java 8 World