CLI: fix "unknown JVM target version" error message
Do not list 1.6 as supported because it was removed in KT-45165. #KT-66175 Fixed
This commit is contained in:
committed by
Space Team
parent
e65caee26b
commit
5f261d3ad0
@@ -79,7 +79,7 @@ fun CompilerConfiguration.setupJvmSpecificArguments(arguments: K2JVMCompilerArgu
|
||||
} else {
|
||||
messageCollector.report(
|
||||
ERROR, "Unknown JVM target version: $jvmTargetValue\n" +
|
||||
"Supported versions: ${JvmTarget.entries.joinToString { it.description }}"
|
||||
"Supported versions: ${JvmTarget.supportedValues().joinToString { it.description }}"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
error: unknown JVM target version: 1.5
|
||||
Supported versions: 1.6, 1.8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21
|
||||
Supported versions: 1.8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21
|
||||
COMPILATION_ERROR
|
||||
|
||||
Reference in New Issue
Block a user