Some interesting observations when upgrading boot to JAVA 16. I use IntelliJ for my development.
- Make sure the pom file is updated with latest JDK version
<properties>
<java.version>16</java.version>
</properties>
- Boot version that was compatible with 2.4.4. Upgrade of boot prevents this following error
Caused by: org.springframework.core.NestedIOException: ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn't supported yet: file [… HiringServiceImplTest.class]; nested exception is java.lang.IllegalArgumentException: Unsupported class file major version 60
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 60
- Updated with new version of Boot 2.4.4.
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.4.4</version>
<relativePath/> <!-- lookup parent from repository -->
Branch for this changes can be found here