wchevreuil commented on PR #6851: URL: https://github.com/apache/hbase/pull/6851#issuecomment-2750804365
> > Thanks for submitting this, @chandrasekhar-188k! Just want to confirm on the issue here, is it that GSON fails to serialize fields that are not java primitves/wrappers? Does it try to serialize even the private fields? > > GSON tries to serialize all the fields of the class except the ones marked as static/transient. So the non static/non transient private fields also gets serialized. currently the issue is with serialization of non-primitive types (like custom classes). Gson uses Java reflection to access and manipulate the fields of objects, even if they are private, enabling it to serialize and deserialize the object's data. Thanks for confirming. For the `regionCachedSize` field, I think it would be nice to have it serialized in the json. Would you think this is doable? Could be worked as a separate jira. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
