From 682cc141828b5295095b26596a2f2eed5856889e Mon Sep 17 00:00:00 2001 From: Hui Tian <827677355@qq.com> Date: Wed, 18 May 2022 07:47:03 +0800 Subject: [PATCH] [bug] (init) Java version check fail (#9607) --- .../src/main/java/org/apache/doris/common/util/JdkUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/common/util/JdkUtils.java b/fe/fe-core/src/main/java/org/apache/doris/common/util/JdkUtils.java index e46b3401d36ed7..34a604eb0d3b76 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/common/util/JdkUtils.java +++ b/fe/fe-core/src/main/java/org/apache/doris/common/util/JdkUtils.java @@ -66,7 +66,7 @@ public static String getJavaVersionFromFullVersion(String fullVersionStr) { * Output: 13, 8 */ public static int getJavaVersionAsInteger(String javaVersionStr) { - String[] parts = javaVersionStr.split("\\."); + String[] parts = javaVersionStr.split("\\.|\\+"); if (parts[0].equals("1")) { return Integer.valueOf(parts[1]); } else {