Is there any way around this, or will I just not be able to use jacoco?
To collect execution data JaCoCo instruments the classes under test which adds two members to the classes: A private static field $jacocoData
and a private static method $jacocoInit()
. Both members are marked as synthetic.
Please change your code to ignore synthetic members. This is a good practice anyways as also the Java compiler creates synthetic members in certain situation.