We recently upgraded our Spring boot app to use Java11 but we are having some issues when running the tests in circleci.
We are using the docker image: circleci/openjdk:11-jdk.
But during the tests we are getting the following exceptions:
Caused by: java.lang.NoSuchFieldException: $jacocoAccess
at java.base/java.lang.Class.getField(Class.java:2000)
Any idea what the problem might be and how to solve it?
Hello
We are following up on old threads in case other people find them useful.
In regards to the error I have found the following StackOverflow: java - NoSuchFieldException when field exists - Stack Overflow
We also are no longer going to support circleci images and you should replace your circleci images with the new cimg version. In this case you would need to replace circleci/openjdk:11-jdk with cimg/openjdk:11
Kind Regards
Owen Oliver