When invoking org.springframework.web.util.UriComponentsBuilder to build a uri query from a Java POJO, some Jacoco_data gets embedded into the result. It is getting confused with "instrument_types"
JaCoCo version: 0.8.0-0.8.3
Operating system: Mac High Sierra
Tool integration: Maven
Expected behaviour
Response contains ".$jacoco_data=" at the end as you see in:
Any advice would be appreciated.
Gisella
My code uses reflection. Why does it fail when I execute it with 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.