jodd.bean.BeanException: Simple property not found: $jacocoData. Invalid property Coverage error

204 views
Skip to first unread message

gazal....@gmail.com

unread,
May 15, 2017, 2:39:02 AM5/15/17
to JaCoCo and EclEmma Users
Coverage as gives the error :jodd.bean.BeanException: Simple property not found: $jacocoData. Invalid property while running as junit test works fine.

Evgeny Mandrikov

unread,
May 15, 2017, 2:50:44 AM5/15/17
to JaCoCo and EclEmma Users, gazal....@gmail.com
Please see FAQ ( http://www.jacoco.org/jacoco/trunk/doc/faq.html ):

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.

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages