<Proper usage of com.fasterxml.jackson.module.kotl...
# stackoverflow
u
Proper usage of com.fasterxml.jackson.module.kotlin.UIntDeserializer I would like to make use of extra deserializers defined for Kotlin-specific data types: UInt, ULong and UShort. The following code does work as expected: val actual: UInt = objectMapper.readValue("4294967295") val expected: UInt = 4294967295u assertThat(actual).isEqualTo(expected) However I can't make it work for a data class like this: data class U( @JsonProperty("x") @JsonDeserialize(using = UIntDeserializer::class) val x: UInt ) val actual: U =...