This is an automated email from the ASF dual-hosted git repository.
morrySnow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new ca20f0d2276 [fix](fe) Update fe-core compiler release level from 8 to
17 (#63843)
ca20f0d2276 is described below
commit ca20f0d2276db6e0324190b4cce968ac6819563f
Author: heguanhui <[email protected]>
AuthorDate: Thu Jun 11 09:56:58 2026 +0800
[fix](fe) Update fe-core compiler release level from 8 to 17 (#63843)
### What problem does this PR solve?
Issue Number: close #63728
Problem Summary: FE depends on JDK 17 for compilation (parent pom set
`maven.compiler.source/target=17` since PR #62221), but fe-core's
`maven-compiler-plugin` still had `<release>8</release>` as a leftover
from PR #41417. This caused FE unit tests using JDK 17 APIs (e.g.,
`Random.nextLong(long)`) to fail at compile time. Additionally,
`PatternDescribableProcessor` declared
`@SupportedSourceVersion(SourceVersion.RELEASE_8)`, which is
inconsistent with the JDK 17 compilation target.
---
fe/fe-core/pom.xml | 2 +-
.../doris/nereids/pattern/generator/PatternDescribableProcessor.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fe/fe-core/pom.xml b/fe/fe-core/pom.xml
index 5c258a4983c..ec53a24a75e 100644
--- a/fe/fe-core/pom.xml
+++ b/fe/fe-core/pom.xml
@@ -859,7 +859,7 @@ under the License.
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
- <release>8</release>
+ <release>17</release>
</configuration>
<executions>
<!-- first: compile annotation and annotation processor -->
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/nereids/pattern/generator/PatternDescribableProcessor.java
b/fe/fe-core/src/main/java/org/apache/doris/nereids/pattern/generator/PatternDescribableProcessor.java
index 63b872ef6ff..e12ccd44189 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/nereids/pattern/generator/PatternDescribableProcessor.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/nereids/pattern/generator/PatternDescribableProcessor.java
@@ -57,7 +57,7 @@ import javax.tools.StandardLocation;
/**
* annotation processor for generate GeneratedPattern.java.
*/
-@SupportedSourceVersion(SourceVersion.RELEASE_8)
+@SupportedSourceVersion(SourceVersion.RELEASE_17)
@SupportedAnnotationTypes("org.apache.doris.nereids.pattern.generator.PatternDescribable")
public class PatternDescribableProcessor extends AbstractProcessor {
private List<File> paths;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]