iamandi / nanopb

Automatically exported from code.google.com/p/nanopb
zlib License
0 stars 0 forks source link

Generator should give error when submessage with callbacks is used inside oneof #148

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a message with callback fields.
2. Put said message inside another message's oneof field.
3. Run generator and try to decode the message.
4. Generator does not complain but decoding will not work properly.

What is the expected output? What do you see instead?
Generator should give an error as callback fields cannot work inside union.

Original issue reported on code.google.com by Petteri.Aimonen on 7 Mar 2015 at 8:06

GoogleCodeExporter commented 9 years ago
Decided to just clear the callback and extension fields. This allows the 
submessage to work otherwise and the callbacks are just ignored at runtime.

Original comment by Petteri.Aimonen on 3 Apr 2015 at 6:07

GoogleCodeExporter commented 9 years ago
This issue was updated by revision 1cfe56060ce3.

Original comment by Petteri.Aimonen on 3 Apr 2015 at 6:08

GoogleCodeExporter commented 9 years ago
Fix released in nanopb-0.3.3

Original comment by Petteri.Aimonen on 10 Apr 2015 at 6:06