Upgrade to Kotlin 1.7.20

This commit also temporarily changes a test assertion for the Jackson
Kotlin module.
As of https://youtrack.jetbrains.com/issue/KT-52932, Kotlin enhanced the
`IntRange` and this change is not supported yet by the Jackson Kotlin
module. An issue has been reported here:
FasterXML/jackson-module-kotlin#582

Closes gh-29225
This commit is contained in:
Brian Clozel
2022-09-30 11:24:55 +02:00
parent e4940149d9
commit d98e27cf79
2 changed files with 4 additions and 3 deletions

View File

@@ -289,7 +289,8 @@ class Jackson2ObjectMapperBuilderTests {
// Kotlin module
IntRange range = new IntRange(1, 3);
assertThat(new String(objectMapper.writeValueAsBytes(range), "UTF-8")).isEqualTo("{\"start\":1,\"end\":3}");
// temporarily change the assertion, see https://github.com/FasterXML/jackson-module-kotlin/issues/582
assertThat(new String(objectMapper.writeValueAsBytes(range), "UTF-8")).isEqualTo("{\"start\":1,\"end\":3,\"endExclusive\":4}");
}
@Test // gh-22576