We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ae302cb + 8c1248d commit 9c729dfCopy full SHA for 9c729df
src/test/kotlin/tools/jackson/module/kotlin/test/github/GitHub976.kt
@@ -0,0 +1,21 @@
1
+package tools.jackson.module.kotlin.test.github
2
+
3
+import tools.jackson.databind.exc.InvalidNullException
4
+import tools.jackson.module.kotlin.KotlinFeature
5
+import tools.jackson.module.kotlin.jacksonObjectMapper
6
+import org.junit.jupiter.api.assertThrows
7
+import kotlin.test.Test
8
9
+class GitHub976 {
10
+ data class PrimitiveList(val list: List<Int>)
11
12
+ @Test
13
+ fun newStrictNullChecksRegression() {
14
+ val om = jacksonObjectMapper {
15
+ enable(KotlinFeature.NewStrictNullChecks)
16
+ }
17
+ assertThrows<InvalidNullException> {
18
+ om.readValue("""{"list": [""] }""".toByteArray(), PrimitiveList::class.java)
19
20
21
+}
0 commit comments