Hi all, we encountered the following regression while migrating our Scala 2.13.x projects to Jackson 3.
When deserializing JSON to Scala case classes with mutable var fields, Jackson now throws an IllegalStateException if a var is declared as a constructor parameter, but works correctly when declared in the class body.
So this is supported, for both serialization and de-serialization
case class VarTestBody() {
@JsonProperty("t") var test: Int = _
}
But this fails
case class VarTestConstructor(
@JsonProperty("t") var test: Int
)
with
java.lang.IllegalStateException: Conflicting/ambiguous property name definitions (implicit name 'test'): found multiple explicit names: [test, t], but also implicit accessor