WordPress-FluxC-Android icon indicating copy to clipboard operation
WordPress-FluxC-Android copied to clipboard

JsonObjectOrFalseDeserializer doesn't work with Kotlin classes

Open malinajirka opened this issue 6 years ago • 1 comments

JsonObjectOrFalseDeserializer uses java reflection Class.getFields() method here which returns an empty array since Kotlin classes don't have any fields (they have members).

This issue can lead to hard to find bugs when someone creates/converts a Kotlin class. (https://github.com/wordpress-mobile/WordPress-FluxC-Android/pull/1262)

malinajirka avatar May 22 '19 08:05 malinajirka

This is a bigger project (but related to this), we should replace Gson by a more flexible alternative.

maxme avatar May 22 '19 08:05 maxme