Fix: improper Java 8 version check

This commit is contained in:
Duy Tran Khanh 2023-02-19 20:47:44 +07:00 committed by GitHub
parent 1ecbb6bd25
commit 9ace759005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,7 +147,7 @@ public final class Tools {
List<String> javaArgList = new ArrayList<String>(); List<String> javaArgList = new ArrayList<String>();
getCacioJavaArgs(javaArgList, JREUtils.jreReleaseList.get("JAVA_VERSION").equals("1.8.0")); getCacioJavaArgs(javaArgList, JREUtils.jreReleaseList.get("JAVA_VERSION").startsWith("1.8.0"));
/* /*
int mcReleaseDate = Integer.parseInt(versionInfo.releaseTime.substring(0, 10).replace("-", "")); int mcReleaseDate = Integer.parseInt(versionInfo.releaseTime.substring(0, 10).replace("-", ""));