The IR backend appears to have changed the way con...
# jvm-ir-backend-feedback
d
The IR backend appears to have changed the way constructors are generated. This test works under the old backend, but with the IR backend Jackson is unable to find the
@JsonCreator
-annotated constructor https://github.com/FasterXML/jackson-module-kotlin/blob/kotlin-jvm-ir-backend/src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github/Github145.kt#L33
Diffing the bytecode from the old backend and the new (IR) makes it clear why—the
@JsonCreator
(https://github.com/FasterXML/jackson-annotations/blob/master/src/main/java/com/fasterxml/jackson/annotation/JsonCreator.java#L46) annotation isn’t present in the IR-generator bytecode
I have a branch demonstrating this (it just turns on the IR compiler) here https://github.com/FasterXML/jackson-module-kotlin/commits/kotlin-jvm-ir-backend
i