It would have been nice if one of there adapters would just use KSP to generate what's needed instead of reflection or kotlin metadata... then even the value class problems wouldn't exist... Micronaut generates some kind of classes to avoid reflection too (with the
@Introspected
annotation), but obviously they don't really support Kotlin too much... since it's mostly java.
dave08
04/27/2023, 3:40 PM
But at least somebody's trying 😃! Just "expiremental project" is a bit scary to be using for production.
w
wrongwrong
04/27/2023, 4:01 PM
KSP
Perfect support for
value class
is unrealistic as far as
Jackson
is concerned.
The main reason is that the code generated by
value class
will interfere with the analysis by
Jackson
.
Just "expiremental project" is a bit scary to be using for production.
Yes, I do not recommend using this project for production code.
However, the results obtained by this project will be reflected in
jackson-module-kotlin
and
Kotlin
, so active experimentation would be greatly appreciated.
d
dmcg
05/16/2023, 7:49 AM
Is the issue just reading? In my experience writing value classes is working just fine
w
wrongwrong
05/16/2023, 4:35 PM
This is not to say that there are no issues in serialization.
Compared to deserialization, it works correctly in many cases, but there are a few issues that are difficult to fix.