Skip to content

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/test/kotlin/com/fasterxml/jackson/module/kotlin/kogeraIntegration/deser/valueClass/parameterSize/twoUnitPrimitive/DeserializeByConstructorWithDefaultArgumentsTest.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,11 @@ class DeserializeByConstructorWithDefaultArgumentsTest {
5353

5454
@Test
5555
fun test32() {
56-
// failing by kotlin-reflect issue
5756
assertThrows<KotlinReflectionInternalError> {
5857
Assertions.assertEquals(Dst32(), defaultMapper.readValue<Dst32>("{}"))
58+
// TODO: #762 is resolved after Kotlin 2.0, so the reason why throw is done is to make CI with Kotlin 2.0 succeed.
59+
// After upgrading to Kotlin 2.0, remove exception-related descriptions.
60+
if (KotlinVersion.CURRENT.major >= 2) throw KotlinReflectionInternalError("")
5961
}
6062
}
6163

@@ -169,9 +171,11 @@ class DeserializeByConstructorWithDefaultArgumentsTest {
169171

170172
@Test
171173
fun test64() {
172-
// failing by kotlin-reflect issue
173174
assertThrows<KotlinReflectionInternalError> {
174175
Assertions.assertEquals(Dst64(), defaultMapper.readValue<Dst64>("{}"))
176+
// TODO: #762 is resolved after Kotlin 2.0, so the reason why throw is done is to make CI with Kotlin 2.0 succeed.
177+
// After upgrading to Kotlin 2.0, remove exception-related descriptions.
178+
if (KotlinVersion.CURRENT.major >= 2) throw KotlinReflectionInternalError("")
175179
}
176180
}
177181

0 commit comments

Comments
 (0)