Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
IllegalAccessError with swapInit and clinit in jacoco 0.8.2 #911
We get this Error seemingly random places in our Spock tests after upgrading to Jacoco 0.8.2 in my build:
I'm using RC3.
I've also created an issue @ jacoco: jacoco/jacoco#757
@leonard84 Groovy 2.5.3-SNAPSHOT and jdk 10.0.2 (I am also testing the latest jdk 11).
@MartyIX You might be correct with the groovy snapshot assumption, one team member got this error with jdk 10, while I could only reproduce it with 11. Maybe we're both good later today when we cash check a later snapshot.
We had similar problems when switching to JDK 11: Random tests failed with this error message.
We found a that in our case we could fix the failing test by changing all long and float primitives to ints.
Similarly this fails:
Obviously this is only a quick fix, but maybe someone has some insight into why this works?