Jacoco agent classdumpdir creates duplicate classes

77 views
Skip to first unread message

anto...@gmail.com

unread,
Jul 31, 2018, 9:29:19 PM7/31/18
to JaCoCo and EclEmma Users
Hello,
I briefly used Jacoco agent in WebLogic 12c server with option of classdumpdir to generate class files. When I run the CLI tool to generate HTML report, I get duplicate class error. I checked the generated classes and I see that there are 3 classes with same name but ends with different name at the end.

I am sure 3 class files are generated becuase same class is present in 3 EAR files and all 3 EAR files are deployed in same server.

Is there any option to disable dumping duplicate classes?

Regards,
Anto

Marc Hoffmann

unread,
Aug 1, 2018, 5:46:22 AM8/1/18
to jac...@googlegroups.com
Ho Anto,

if the dumped classes have a different suffix this means they are different (the suffix basically is a hash over the class file). There is no option to disable dumping of such classes because it would be no-deterministic which version gets dumped.

In your case I wonder why you don’t use the the EAR files to create a separate report (or separate report group) with each EAR?

Regards,
-marc
> --
> You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/62a3132e-6d25-4e70-97b0-7b1ad4ab92a3%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

anto...@gmail.com

unread,
Aug 1, 2018, 1:48:27 PM8/1/18
to JaCoCo and EclEmma Users
Will try report ant task with ear files. Thanks for the solution.

Regards,
Anto

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