chandrasekhar-188k commented on PR #6851:
URL: https://github.com/apache/hbase/pull/6851#issuecomment-2750736657

   > 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. 


-- 
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]

Reply via email to