When directly deserializing a value class
that wraps a nullable, deserialization fails if the input is null
.
#209
Labels
value class
About value class support
The
ValueClassDeserializer::getBoxedNullValue
is called only from theKotlinValueInstantiator
.This causes deserialization to fail as per the subject.
This problem can be avoided by implementing
getNullValue
to the inherentValueClassDeserializer
.However, the general implementation of
Kogera
does not usegetNullValue
because of the problem in the more major cases.Also, the above problems make it difficult to solve this problem.
The text was updated successfully, but these errors were encountered: