Skip to content

KotlinSafeCallOperatorFilter should not be affected by presence of pseudo instructions#1956

Merged
Godin merged 6 commits intojacoco:masterfrom
Godin:KotlinSafeCallOperatorFilter_pseudo_instructions
Sep 30, 2025
Merged

KotlinSafeCallOperatorFilter should not be affected by presence of pseudo instructions#1956
Godin merged 6 commits intojacoco:masterfrom
Godin:KotlinSafeCallOperatorFilter_pseudo_instructions

Conversation

@Godin
Copy link
Copy Markdown
Member

@Godin Godin commented Sep 24, 2025

This was overlooked in #1818
See #921 (comment)


For https://github.com/SonarSource/sonar-kotlin/tree/2.22.0.5972
prior to this change we find 102 safe call operator chains
and after 112
ie 10 more

For http://github.com/JetBrains/kotlin/tree/v2.0.0
prior to this change 5042
and after 5175
ie 133 more

@Godin Godin self-assigned this Sep 24, 2025
@Godin Godin added this to Filtering Sep 24, 2025
@github-project-automation github-project-automation Bot moved this to Awaiting triage in Filtering Sep 24, 2025
@Godin Godin moved this from Awaiting triage to To Do in Filtering Sep 24, 2025
@Godin Godin moved this from To Do to In Progress in Filtering Sep 24, 2025
@Godin Godin added this to the 0.8.14 milestone Sep 24, 2025
@Godin Godin marked this pull request as ready for review September 25, 2025 09:34
@Godin Godin requested a review from leveretka September 25, 2025 09:34
Copy link
Copy Markdown
Collaborator

@leveretka leveretka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Comment thread org.jacoco.doc/docroot/doc/changes.html Outdated
Comment on lines +35 to +37
<li>Part of bytecode generated by the Kotlin compiler for chains of safe call
operators is filtered out during generation of report
(GitHub <a href="https://github.com/jacoco/jacoco/issues/1956">#1956</a>).</li>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<li>Part of bytecode generated by the Kotlin compiler for chains of safe call
operators is filtered out during generation of report
(GitHub <a href="https://github.com/jacoco/jacoco/issues/1956">#1956</a>).</li>
<li>Part of bytecode generated by the Kotlin compiler for more cases of chained safe call
operators is filtered out during generation of report
(GitHub <a href="https://github.com/jacoco/jacoco/issues/1956">#1956</a>).</li>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@leveretka nice - this way it won't be identical to the one in previous version 👍

@Godin Godin merged commit faa289d into jacoco:master Sep 30, 2025
36 checks passed
@Godin Godin deleted the KotlinSafeCallOperatorFilter_pseudo_instructions branch September 30, 2025 11:25
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Filtering Sep 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants