Skip to content

Commit 86755ba

Browse files
authored
Assert bytecodeVersion (#492)
1 parent 198103e commit 86755ba

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • formats/src/test/kotlin/com/jakewharton/diffuse/format

formats/src/test/kotlin/com/jakewharton/diffuse/format/ClassTest.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class ClassTest {
1616
val type = TypeDescriptor($$"Lcom/jakewharton/diffuse/format/ClassTest$Dummy;")
1717

1818
assertThat(clazz.descriptor).isEqualTo(type)
19+
assertThat(clazz.bytecodeVersion).isEqualTo(55) // Reflects the JVM target 11.
1920

2021
val initMethod = Method(type, "<init>", emptyList(), TypeDescriptor("V"))
2122
val stringArrayDescriptor = TypeDescriptor("[Ljava/lang/String;")

0 commit comments

Comments
 (0)