Skip to content

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

Merged
hcoles merged 1 commit intomasterfrom
feature/invoke_dynamic_static_initializer
Nov 6, 2023
Merged

consider invoke dynamic calls when detecting static initializer only …#1274
hcoles merged 1 commit intomasterfrom
feature/invoke_dynamic_static_initializer

Conversation

@hcoles
Copy link
Copy Markdown
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.

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