6.6.3 - Alpha4 - 新增 images.matchFeatures/detectAndComputeFeatures 方法 (issue #366)

This commit is contained in:
SuperMonster003
2025-05-14 23:59:13 +08:00
parent 514d39eb6c
commit d3a9cd0f26
25 changed files with 535 additions and 236 deletions

View File

@@ -863,18 +863,18 @@ class Versions(filePath: String) {
}
var versionInt = javaVersionRaw.toInt()
var isFallback = false
var isJvmCoercive = false
while (versionInt > javaVersionMinSupported) {
if (JvmTarget.values().any { it.name.contains(Regex("_$versionInt$")) }) {
break
}
versionInt -= 1
isFallback = true
isJvmCoercive = true
}
if (isFallback) {
javaVersionInfoSuffix += " [fallback]"
if (isJvmCoercive) {
javaVersionInfoSuffix += " [coercive-jvm-downgraded]"
}
if (versionInt > currentVersionInt) {