wrongwrong
01/31/2025, 2:47 PMjackson-module-kotlin
.
We are planning to release Jackson 3.0.0-rc1
at the end of February.
In 3.0, the default values of some options will be changed based on user discussions.
Some of them are still open for voting, so please vote for them here.
The jackson-module-kotlin
is being voted on as well, so please check it out.
• Enable `StrictNullChecks` by default
• Enable `SingletonSupport` by default
Suggestions for new changes are also welcome.Klitos Kyriacou
01/31/2025, 5:58 PMobject
itself or the instance that's just been deserialized?wrongwrong
02/01/2025, 2:24 AMKotlinFeature.SingletonSupport
documentation was.
However, even if it was the default, I would not rewrite the INSTANCE
field.
The only problem is that a new instance is created incorrectly each time it is deserialized.Klitos Kyriacou
02/03/2025, 10:17 AMobject
and then you change the object
and then deserialize it back. I guess in such cases there's no completely safe thing to do, and the developer should guard against such possibilities.Klitos Kyriacou
02/03/2025, 10:20 AMobject DontDoThis {
Instance appStartTime = Instance.now()
}
A naive programmer may think they could save a start time in a file by doing the above.