<div dir="ltr">I was investigating why my annotation processing library (<a href="https://github.com/bowbahdoe/magic-bean">https://github.com/bowbahdoe/magic-bean</a>) was failing to integrate with mapstruct (<a href="https://github.com/mapstruct/mapstruct">https://github.com/mapstruct/mapstruct</a>).<br><br>After talking to one of the maintainers of that library (<a href="https://github.com/mapstruct/mapstruct/issues/3710">https://github.com/mapstruct/mapstruct/issues/3710</a>) and making a reproducer (<a href="https://github.com/bowbahdoe/mapstruct-magicbean-repro">https://github.com/bowbahdoe/mapstruct-magicbean-repro</a>) we've come to the conclusion that I have no clue what is going on.<br><br>For whatever reason, adding an extra annotation processing round breaks exhaustiveness checks in pattern matching. Will try to make a more concise reproducer soon, but sharing here in case anyone happens to have a guess as to whether its a bug in one of the libraries or javac itself</div>