Caleb Hulbert
08/18/2021, 5:27 PMgson
with kotlin, when using delegates. When deserializing and object. the delegate and the field it refers to are deserialized by reflection, and so they end up referring to different objects (i.e. using the delegate to `setValue`/`getValue` no longer updates the field it should be updating).
I was wondering if Kotson
has a was around this? The only way I have had luck so far was creating a custom deserializer for every class which uses delegates, but that's not really ideal.salomonbrys
08/19/2021, 10:10 AMCaleb Hulbert
08/19/2021, 3:35 PMsalomonbrys
08/20/2021, 10:48 AMCaleb Hulbert
08/23/2021, 7:49 PM