plutoo / protobuf-csharp-port

Automatically exported from code.google.com/p/protobuf-csharp-port
Other
0 stars 0 forks source link

The XML serializer will fail to deserialize a message with empty child message #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Create a proto with a child message
2.  Serialize the message to XML with the child message set to DefaultInstance
3.  Read the message, all fields after the empty <child/> will be lost

Json/Binary function as expected.

Original issue reported on code.google.com by Grig...@gmail.com on 10 Oct 2012 at 8:17

GoogleCodeExporter commented 9 years ago
Revision: 73c701bf1c30
Fixed, added two tests to verify:

RoundTripWithEmptyChildMessageSize()
RoundTripWithEmptyChildMessageSpeed()

Original comment by Grig...@gmail.com on 10 Oct 2012 at 8:26