Using ANTLR2 with Java 21 #4700
Unanswered
gurucubano
asked this question in
Q&A
Replies: 1 comment
-
I fixed this with the Debian.org pkg from https://tracker.debian.org/news/1556607/accepted-antlr-maven-plugin-22-6-source-into-unstable/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
We have an historical Java written application for a search engine, using since ages ANTLR2 and the AST produced by it. We now want to move with all the code to Java21, but the ANTLR2 part does not compile anymore. It compiles fine a test. pgm, like:
compiling and running this with Java 17 gives:
So far so good.
But with Java21 it gives:
Is there a way to fix this without moving to ANTLR4, i.e. rewriting the two
*.g
as*.g4
and writing a new visitor to get the AST again?Beta Was this translation helpful? Give feedback.
All reactions