I'm attempting to migrate a Maven application to Java 11 (OpenJDK 11).
To start, I am looking to compile my Java 8 project utilizing Java 11 via the release
compiler option to target 8.
The compilation works fine, however when running my JUnit tests, the tests fail with various issues (Maven MyBatis tests fail when running Java 8 project compiled with Java 11).
In an attempt to eliminate variables, I've simplified the process and compiled the application with the Java 8 compiler (vs. Java 11, targeting Java 8) and then ran my tests with the Java 11 runtime - I'm still experiencing exceptions.
My understanding is that you should be able to run Java 8 applications with Java 11 as it should be backwards compatible.
What am I missing?