gale320 / staff

Automatically exported from code.google.com/p/staff
Apache License 2.0
0 stars 0 forks source link

Child attribute serialized under wrong tag #195

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Compile the sample and run it

What is the expected output? What do you see instead?
The original should be equal to the reserialized, but the list of items is 
missing.

Please use labels and text to provide additional information.

By looking at the serialized message it seems that optional_list_type is 
serialized incorrectly (it is serialized as a list_type instead) 
Looking into it, it seems that the code generated has an error, in 
foo_typesProxy.h:71

Instead of "list_type" it should be "optional_list_type"

I tried to debug the codegen to fix the issue but I kind of got lost among the 
way... If you find the fix for this bug can you explain it to me, so I can get 
a bit more into the codegenerator? I would like to help you if I find another 
bug in the future

Original issue reported on code.google.com by alexmantaut on 28 Dec 2012 at 8:05

GoogleCodeExporter commented 9 years ago

Original comment by alexmantaut on 28 Dec 2012 at 8:06

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by alexmantaut on 3 Jan 2013 at 2:49

GoogleCodeExporter commented 9 years ago
Looks like there is an obsolete checking that gives wrong element name for 
parent.

This checking was needed when codegen has no support for nested structures 
(long time ago). Now it's not needed, because element name is formed by nested 
struct.

Original comment by loentar on 3 Jan 2013 at 8:08

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r725.

Original comment by loentar on 3 Jan 2013 at 8:08