Can't add different class with same name

2,103 views
Skip to first unread message

santosh....@gmail.com

unread,
Jan 17, 2018, 2:52:20 PM1/17/18
to JaCoCo and EclEmma Users
Hi JaCoCo Users,

I have a situation here, I am trying to generate jacoco reports as per individual project directories, which give 10 different reports. I am trying to generate 1 single report by combining all the 10 reports

I am following below procedure to generate final jacoco Report

1) Generating Individual Test Reports using jacocoTestReport
2) Merging all the Individual reports using jacocoMerge
3)Generating root report based on all the individual jacocoTestReports using jacocoRootReport
1 & 2 steps are success but when generating root report I am getting following error

Caused by: java.lang.IllegalStateException: Can't add different class with same name: com/ge/hcit/is/iscommon/config/IsfCommonConfiguration

Let me know if someone have figured out a solution for this situation

Immediate help appreciated...!!!

Marc Hoffmann

unread,
Jan 22, 2018, 7:05:58 AM1/22/18
to jac...@googlegroups.com
Hi,

there is immediate help in our FAQ:

Why do I get the error "Can't add different class with same name"?

For coverage report generation all classes within a group must have
unique names. You get this error during report generation if JaCoCo is
supplied with multiple different class files with the same name. To fix
this remove those duplicate classes or create separate reports or report
groups for each version.

http://www.jacoco.org/jacoco/trunk/doc/faq.html


The full background information can be read here:

http://www.jacoco.org/jacoco/trunk/doc/classids.html

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