Relates :
|
The specification for putFields is as follows: "Retrieve the object used to buffer persistent fields to be written to the stream. The fields will be written to the stream when writeFields method is called. Returns: an instance of the class Putfield that holds the serializable fields" It is ambiguous as to whether the same instance is returned for multiple calls. The current implementation of putFields in ObjectOutputStream returns the same instance for multiple calls.