From 5c1a979bd604dab96ffcc4fe534b522315603986 Mon Sep 17 00:00:00 2001 From: Goooler Date: Thu, 19 Mar 2026 23:30:32 +0800 Subject: [PATCH] Assert bytecodeVersion --- .../src/test/kotlin/com/jakewharton/diffuse/format/ClassTest.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/formats/src/test/kotlin/com/jakewharton/diffuse/format/ClassTest.kt b/formats/src/test/kotlin/com/jakewharton/diffuse/format/ClassTest.kt index 91ba7229..e80b1069 100644 --- a/formats/src/test/kotlin/com/jakewharton/diffuse/format/ClassTest.kt +++ b/formats/src/test/kotlin/com/jakewharton/diffuse/format/ClassTest.kt @@ -16,6 +16,7 @@ class ClassTest { val type = TypeDescriptor($$"Lcom/jakewharton/diffuse/format/ClassTest$Dummy;") assertThat(clazz.descriptor).isEqualTo(type) + assertThat(clazz.bytecodeVersion).isEqualTo(55) // Reflects the JVM target 11. val initMethod = Method(type, "", emptyList(), TypeDescriptor("V")) val stringArrayDescriptor = TypeDescriptor("[Ljava/lang/String;")