diff --git a/pitest-entry/src/main/java/org/pitest/mutationtest/build/intercept/javafeatures/InlinedFinallyBlockFilter.java b/pitest-entry/src/main/java/org/pitest/mutationtest/build/intercept/javafeatures/InlinedFinallyBlockFilter.java index 9851ba738..ada47c141 100644 --- a/pitest-entry/src/main/java/org/pitest/mutationtest/build/intercept/javafeatures/InlinedFinallyBlockFilter.java +++ b/pitest-entry/src/main/java/org/pitest/mutationtest/build/intercept/javafeatures/InlinedFinallyBlockFilter.java @@ -31,6 +31,7 @@ import java.util.stream.Collectors; import static java.util.function.Predicate.isEqual; +import static java.util.stream.Collectors.joining; import static org.pitest.bytecode.analysis.InstructionMatchers.anyInstruction; import static org.pitest.bytecode.analysis.InstructionMatchers.isInstruction; @@ -195,7 +196,12 @@ private boolean isInFinallyBlock(MutationDetails m) { private boolean isPossibleToCorrectInlining(List mutationsInHandlerBlock) { if (mutationsInHandlerBlock.size() > 1) { - LOG.warning("Found more than one mutation similar on same line in a finally block. Can't correct for inlining."); + LOG.warning("Found more than one mutation similar on same line in a finally block. " + + "Can't correct for inlining.\n\t" + + mutationsInHandlerBlock + .stream() + .map(Object::toString) + .collect(joining("\n\t"))); return false; }