Reflection may be feasible, but a downside hit on performance.

I have a suggestion: writing a subclass, open that field using a getter, and
then customize serialization process for this subclass to deliberate invoke
this getter. Is this possible?


2006/11/26, Andrew Zhang <[EMAIL PROTECTED]>:

Hi folks,

I encountered a problem when writing serialization test for
SerialJavaObject
class. There're two fields are required by serialized form: Object obj,
and
Vector chain. But there's no public method is available to get chain
variable. The question comes:
How can I verify deserilized object, by reflection? How do we handle such
problem in other modules? Any suggestions?

Thanks in adavance!

--
Best regards,
Andrew Zhang




--
Spark Shen
China Software Development Lab, IBM

Reply via email to