Status: New
Owner: [email protected]
Labels: Type-Defect Priority-Medium
New issue 660 by [email protected]: PrintFieldValue() fails if the
enumvalue is valid.
http://code.google.com/p/protobuf/issues/detail?id=660
What steps will reproduce the problem?
1. Create a message for an enum, but make the enumvalue invalid
What is the expected output? What do you see instead?
I see an Exception casued by test_format.py line 123:
out.write(field.enum_type.values_by_number[value].name)
Please provide any additional information below.
One might argue that an error is epected, but protobufs are generally
considered backwards compatible, so if I add a new value to the enum it
should not cause software running old versions to throw exceptions.
I propose displaying the int value if no enum name can be found.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups "Protocol
Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.