I have packaged my own jacocoagent.jar. After packaging, the package name for the internal package is org.jacoco.agent.rt.internal instead of the official org.jacoco.agent.rt.internal_aeaf9ab.
I have a scenario where I use Arthas to perform retransform, so I used the official jacococli.jar for offline instrumentation. However, after instrumentation, the introduced package is org.jacoco.agent.rt.internal_aeaf9ab instead of org.jacoco.agent.rt.internal, which results in a NoClassDefFoundError or ClassNotFoundException for the class org.jacoco.agent[...]Offline.
I also checked the similar issue in the JaCoCo FAQ
https://www.jacoco.org/jacoco/trunk/doc/faq.html, but it does not address my specific problem.
How can I handle this situation? How can I ensure that the fully qualified name of the Offline class introduced by offline instrumentation is org.jacoco.agent.rt.internal.Offline instead of org.jacoco.agent.rt.internal_aeaf9ab.Offline?