Integrated: 8332497: javac prints an AssertionError when annotation processing runs on program with module imports
Evemose
duke at openjdk.org
Mon May 27 08:57:10 UTC 2024
On Sun, 19 May 2024 00:18:40 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
This pull request has now been integrated.
Changeset: 617edf3f
Author: Evemose <rotan.olexandr at lll.kpi.ua>
Committer: Jan Lahoda <jlahoda at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/617edf3f0dea2b73e4b444e085de2ad282826e31
Stats: 113 lines in 3 files changed: 113 ins; 0 del; 0 mod
8332497: javac prints an AssertionError when annotation processing runs on program with module imports
Reviewed-by: liach, vromero, jlahoda
-------------
PR: https://git.openjdk.org/jdk/pull/19292
More information about the compiler-dev
mailing list