Commit a06e3a3
committed
[KYUUBI #7289] Release requires Java 17 or 21
### Why are the changes needed?
I hit an issue while preparing 1.11.0 RC0, which indicates I need to use a higher version of JDK for releasing.
```
[INFO] --- antlr4:4.13.1:antlr4 (default) kyuubi-extension-spark-4-0_2.13 ---
[WARNING] Error injecting: org.antlr.mojo.antlr4.Antlr4Mojo
java.lang.UnsupportedClassVersionError: org/antlr/v4/Tool has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1 (Native Method)
at java.lang.ClassLoader.defineClass (ClassLoader.java:756)
at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:142)
```
In #7144, we made it always use `-release:8` for `jdk9+`, so we still produce Java 8 compatible bytecode even using JDK 17, for all modules except Spark 4.0/4.1 extension modules.
### How was this patch tested?
Will verify this in the next RC of 1.11.0
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #7289 from pan3793/release-java17.
Closes #7289
17e29be [Cheng Pan] Release requires Java 17 or 21
Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
(cherry picked from commit eecdaaa)
Signed-off-by: Cheng Pan <chengpan@apache.org>1 parent 9d2930f commit a06e3a3
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
| 65 | + | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
0 commit comments