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

consider invoke dynamic calls when detecting static initializer only … #1274

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

hcoles
Copy link
Owner

@hcoles hcoles commented Nov 6, 2023

Mutants in code that is called only by static initializers are often impossible to kill. The code is only executed once, so mutations to this code are only visible if pitest happens to have launched a JVM just before the mutant is inserted. Pitest therefore detects these areas of code and avoids inserting mutants into them.

Previously, pitest did not properly follow invoke dynamic calls when detecting code called from static initializers. This resulted in mutants nor being supressed.

@hcoles hcoles merged commit 917b9ce into master Nov 6, 2023
7 checks passed
hcoles added a commit that referenced this pull request Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant