Skip to content

Conversation

@gustavoharff
Copy link
Contributor

Follow up #15150

Jacoco isn't displaying coverage lines on methods annotated with Transactional (or other annotation that apply AST transformation).

I think that has been applied to display a more clean list of methods in the tree, but I guess the coverage lines is more important than that.

I did some tests and below you can see the results.

Current

No coverage lines are displayed.

markAsGenerated(classNode, renamedMethodNode)
image

Marking the original method as generated

I don't think this is the best way, it feels counterintuitive to me.

markAsGenerated(classNode, methodNode)
image

Not marking methods as generated

It has a larger methods list than other ways.

image

I chose not to mark the methods as generated, let me know what you think.

@jdaugherty
Copy link
Contributor

This appears to be a follow-up to #15150

@jdaugherty
Copy link
Contributor

Given that we made this change on 10/17 and it recently was released, I'm going to go ahead and merge this since it's basically a revert.

@jdaugherty jdaugherty merged commit f4a5c5f into apache:7.0.x Nov 6, 2025
1 check passed
@jamesfredley jamesfredley added this to the grails:7.0.2 milestone Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants