RFR: 8332497: javac prints an AssertionError when annotation processing runs on program with module imports [v19]
Jan Lahoda
jlahoda at openjdk.org
Mon May 27 06:16:07 UTC 2024
On Sat, 25 May 2024 05:52:26 GMT, Evemose <duke at openjdk.org> wrote:
>> Fix is pretty simple: visitModuleImport in com.sun.tools.javac.tree.TreeScanner has notbeen overriden, so defaulted to Visitor::visitModuleImport, which forwards to Visitor::visitTree, which is also not overriden, and, therefore, threw AssertionError.
>>
>> PS: Im not even sure how it worked before without crashing, seems like there is some intermidiate implementation between this TreeScanner and actual scanners because otherwise it should have resultedin compile error the moment it encounter module importin any visitor
>
> Evemose has updated the pull request incrementally with two additional commits since the last revision:
>
> - Addressed review (2)
> - Addressed review
> Hi! I have already typed integrate a bit earlier in the conversation ([#19292 (comment)](https://github.com/openjdk/jdk/pull/19292#issuecomment-2131213489)), so I am waiting for sponsor for now
Right. Sorry, I missed the label.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19292#issuecomment-2132715211
More information about the compiler-dev
mailing list