Skip to content

Conversation

gtoison
Copy link
Contributor

@gtoison gtoison commented Jul 2, 2024

Thanks for the reproducer @ghernadi !
The issue is that when building the CFG of the method SpotBugs was incorrectly analyzing the caught type (singular) when it actually was the types (plural) corresponding to a multi-catch block.
This should fix #2968 and supersede #2999

@gtoison gtoison changed the title Issue 2968 Multi catch type analysis fix Jul 2, 2024
@hazendaz hazendaz self-assigned this Jul 5, 2024
@hazendaz hazendaz added this to the SpotBugs 4.9.0 milestone Jul 5, 2024
@hazendaz hazendaz merged commit 4ba5fa0 into spotbugs:master Jul 5, 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.

False positive BC_IMPOSSIBLE_INSTANCEOF
4 participants