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
Currently kotlin-module creates a new instance by default when deserializing object.
This problem can be solved by enabling KotlinFeature.SingletonSupport.
On the other hand, to avoid compromising the integrity of Kotlin, this option should be enabled by default.
Barring any strong objections, I intend to make the above change in Jackson 3.0 (although it should be confirmed that there are no performance issues beforehand).
I would also like to remove the SingletonSupport option as well, as there seems to be no advantage to choosing this behavior.
Please vote with 👍 or 👎.
Reacted by Tatu Saloranta, Henning Hoefer, wrongwrong and Harel Biton
Activity
Jackson 3.0#870k163377 commentedon Feb 15, 2025
Benchmarking was performed and confirmed that throughput remained above 99% when enabled.
https://github.com/k163377/singleton-support-benchmark
k163377 commentedon Mar 22, 2025
The change have been reflected (sorry for not making it to
RC1in time).