Regarding Aspect with jacoco

12 views
Skip to first unread message

RK

unread,
Jun 18, 2024, 9:04:51 AM (6 days ago) Jun 18
to JaCoCo and EclEmma Users
https://groups.google.com/g/jacoco/c/HziLWA3uT6g/m/qZTyh0AmGAAJ

Since aspect modified byte code at run time, causes issues in report generation. Solution provided was to load the jacoco agent before Aspect. In this case , probes are already instrumented on top of it aspect is injecting some changes. Will the coverage data tracked will be same or it will cause discrepancy ? Kindly give some clarifications on this

Marc Hoffmann

unread,
Jun 18, 2024, 12:18:09 PM (6 days ago) Jun 18
to jac...@googlegroups.com
Hi,

JaCoCo will show what parts of the original bytecode are executed. If the inspected bytecode has an impact on this, it will be reflected in the coverage report.

Regards,
-marc

On 18. Jun 2024, at 15:04, RK <rajkuma...@gmail.com> wrote:



Since aspect modified byte code at run time, causes issues in report generation. Solution provided was to load the jacoco agent before Aspect. In this case , probes are already instrumented on top of it aspect is injecting some changes. Will the coverage data tracked will be same or it will cause discrepancy ? Kindly give some clarifications on this

--
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/d0f8a48f-9386-4863-8740-3580cd03656en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages