-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is the latest version of antlr4 compatible with jdk8 jar? #4203
Comments
Antlr runtime is compatible with jdk8. Antlr tool requires jdk11. Can you provide a concrete example of this Spark incompatibility (stack trace) ? |
jdk switch to 11, ready to compile. Thanks! |
Do you mean we can using Java 11 and Antlr tool to generate java file from |
Yes |
The stack trace below is not a Jdk issue.Rather there is a mismatch between the antlr version used to generate the parser and the runtime Envoyé de mon iPhoneLe 23 mars 2023 à 11:19, melin ***@***.***> a écrit :
Antlr runtime is compatible with jdk8. Antlr tool requires jdk11. Can you provide a concrete example of this Spark incompatibility (stack trace) ?
Do you mean we can using Java 11 and Antlr tool to generate java file from .g4 file, and then using Java 8+Antlr runtime to use java file at runtime?
Yes
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Why does Antlr tool need at least jdk11? This requires that mvn requires jdk11 to run |
Just set MVN_HOME ?Envoyé de mon iPhoneLe 25 mars 2023 à 15:58, melin ***@***.***> a écrit :
Why does Antlr tool need at least jdk11? This requires that mvn requires jdk11 to run
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
I meant JAVA_HOMEEnvoyé de mon iPhoneLe 25 mars 2023 à 21:23, Wanadoo ***@***.***> a écrit :Just set MVN_HOME ?Envoyé de mon iPhoneLe 25 mars 2023 à 15:58, melin ***@***.***> a écrit :
Why does Antlr tool need at least jdk11? This requires that mvn requires jdk11 to run
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Many big data components depend on antlr4. For example: spark, antlr4 cannot be upgraded to the latest version for compatibility with jdk8.
grammars-v4 some grammars in 4.10 later, unable to upgrade the JDK version, lead to cannot use: for example: https://github.com/antlr/grammars-v4/commits/master/sql/tsql/
Is the latest version of antlr4 compatible with jdk8 jar?
The text was updated successfully, but these errors were encountered: