Behaviour change, this code produces a different result to 2.10.0, where field would not be rendered:
data class Wrapper(private val field: String) {
val upper = field.toUpperCase()
fun field() = field
fun stillAField() = field
}
fun main() {
println(
ObjectMapper()
.registerModule(KotlinModule())
.writeValueAsString(Wrapper("hello"))
)
}
produces:
{"field":"hello","upper":"HELLO"}