You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Java code generated by the antlr4-maven-plugin version 4.13.1 still has this escape warnings when compiling with -Xlint:all.
Note that this issue was partially addressed in #4394 where the @SuppressWarnings on the Lexer class was updated. Apparently this problem is still present on the Parser class aswell.
Then using Java 21 run mvn clean compile (I used Linux and maven 3.9.5)
The output contains several lines similar to this:
[WARNING] /home/nbasjes/.../Antlr4Java21/target/generated-sources/antlr4/ExpressionParser.java:[88,50] possible 'this' escape before subclass is fully initialized
The text was updated successfully, but these errors were encountered:
When you actually build this with Java 21 you'll see that the reported problem on the Lexer class is gone and the (many) problems in the Parser class remain the same.
The Java code generated by the
antlr4-maven-plugin
version4.13.1
still hasthis escape
warnings when compiling with-Xlint:all
.Note that this issue was partially addressed in #4394 where the
@SuppressWarnings
on theLexer class
was updated. Apparently this problem is still present on theParser class
aswell.Minimal reproduction:
In an empty directory create
./pom.xml
and any grammar in
./src/main/antlr4/
I used
./src/main/antlr4/Expression.g4
Then using Java 21 run
mvn clean compile
(I used Linux and maven 3.9.5)The output contains several lines similar to this:
The text was updated successfully, but these errors were encountered: