Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable SingletonSupport by default #871

Open
k163377 opened this issue Dec 15, 2024 · 0 comments
Open

Enable SingletonSupport by default #871

k163377 opened this issue Dec 15, 2024 · 0 comments
Labels
3.x Issue affecting/planned for Jackson 3.x

Comments

@k163377
Copy link
Contributor

k163377 commented Dec 15, 2024

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.

@k163377 k163377 added the 3.x Issue affecting/planned for Jackson 3.x label Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.x Issue affecting/planned for Jackson 3.x
Projects
None yet
Development

No branches or pull requests

1 participant