Add JVM target bytecode version 19

Test data in `box/annotations/typeAnnotations` is changed because nested
classes in type annotations are rendered differently in JDK 19
(`Outer.Nested` instead of `Outer$Nested`).

 #KT-54116 Fixed
This commit is contained in:
Alexander Udalov
2022-09-21 14:53:12 +02:00
parent 8757988037
commit ba150ca370
11 changed files with 27 additions and 26 deletions
@@ -35,6 +35,7 @@ enum class JvmTarget(
JVM_16("16", Opcodes.V16),
JVM_17("17", Opcodes.V16 + 1),
JVM_18("18", Opcodes.V16 + 2),
JVM_19("19", Opcodes.V16 + 3),
;
override fun toString() = description
@@ -60,7 +61,7 @@ enum class JvmTarget(
values().asList() - JVM_1_6
const val SUPPORTED_VERSIONS_DESCRIPTION =
"1.8, 9, 10, ..., 18"
"1.8, 9, 10, ..., 19"
init {
check(SUPPORTED_VERSIONS_DESCRIPTION == "1.8, 9, 10, ..., ${values().last().description}") {