Code generating annotation processors break eachother
Ethan McCue
ethan at mccue.dev
Sat Sep 14 17:12:01 UTC 2024
I was investigating why my annotation processing library (
https://github.com/bowbahdoe/magic-bean) was failing to integrate with
mapstruct (https://github.com/mapstruct/mapstruct).
After talking to one of the maintainers of that library (
https://github.com/mapstruct/mapstruct/issues/3710) and making a reproducer
(https://github.com/bowbahdoe/mapstruct-magicbean-repro) we've come to the
conclusion that I have no clue what is going on.
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/compiler-dev/attachments/20240914/67b72c65/attachment.htm>
More information about the compiler-dev
mailing list