Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not merge BranchExp objects in place #13967

Closed
wants to merge 2 commits into from

Conversation

c-mita
Copy link
Member

@c-mita c-mita commented Sep 9, 2021

BranchExp objects form a tree structure that is used in report branch
evaluations for a source line. Merging of these objects in place when
associating them to line numbers will alter the structures rooted at
other line numbers, potentially resulting in false positives in the
branch coverage report.

Fixes #13962

BranchExp forms a tree like structure that is used for evaluation of
branches. By merging these in place when associating them to line
numbers we alter the tree structure rooted at other line numbers,
potentially resulting in false positives in the branch coverage report.
@c-mita c-mita requested a review from comius September 9, 2021 16:15
@google-cla google-cla bot added the cla: yes label Sep 9, 2021
@bazel-io bazel-io closed this in cd500e7 Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Java branch coverage gives wrong results with finally blocks.
2 participants