Need some help to understand when this($EnhancerBySpringCGLIB$$f4601f39") will be added into jacoco.exec file.

Skip to first unread message

Hunk Huang

Dec 20, 2023, 3:28:56 PM12/20/23
to JaCoCo and EclEmma Users
Hi Folks,

I'm working on generating coverage data per test. The solution is add a new test listener when test start, the listener will create a new jacoco session and when test finsihed, the listener will dump data into jacoco.exec file. which is working fine. 

However when I check the exec file. During test cases excution, it's also including some class which is not been used by this test case.  it might related to spring, sampe as:


Does anyone know when this been generated is it really used by test case or we can skip it.


Marc Hoffmann

Dec 27, 2023, 5:32:33 AM12/27/23
to JaCoCo and EclEmma Users
Dear Hunk,

absolutely, Spring creates lots of classes that serve as “glue” between the beans. If you want to know when such classes are generated you better check with the Spring project.

Typically generated code is not considered for code coverage.


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
To view this discussion on the web visit

Reply all
Reply to author
0 new messages