You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hyphens are legal in Kotlin field names. #383 broke serialisation of such fields by incorrectly inferring that any such field name indicates an inline class and proceeding to truncate it before the hyphen.
The issue of property names in the serialization result differing from the definition in Kotlin will be addressed in #630.
This issue be closed as a duplicate.
Describe the bug
Hyphens are legal in Kotlin field names. #383 broke serialisation of such fields by incorrectly inferring that any such field name indicates an inline class and proceeding to truncate it before the hyphen.
To Reproduce
Expected behavior
Versions
Kotlin: 1.4.31
Jackson-module-kotlin: 2.12.2
Jackson-databind: 2.12.2
Additional context
Commit that broke it: 6787e10#diff-5bffae78b70b8281d1cc2775149f7abe12db5a678c9163c105675ec2136183a2R165
PR introducing the breaking change: https://github.com/FasterXML/jackson-module-kotlin/pull/383/files#diff-5bffae78b70b8281d1cc2775149f7abe12db5a678c9163c105675ec2136183a2R162
Line of code that removes the correct field: https://github.com/FasterXML/jackson-databind/blob/e0fd026b38e9f58e78d191ba3b5f03c5a743b1b4/src/main/java/com/fasterxml/jackson/databind/ser/BeanSerializerFactory.java#L727
The text was updated successfully, but these errors were encountered: