Hi,

I am using protobuf-3.3.0, and I found when parsing an unrecognized enum 
value for an optional enum field, the behaviors of "ParseFromString()" and 
"JsonStringToMessage()" are different. "ParseFromString()" will succeed and 
the field's getter method will return the default enum value, but 
"JsonStringToMessage" will fail with an error:

> invalid value "xxx" for type TYPE_ENUM
>

Is this a bug of protobuf-3.3.0? IMHO, "ParseFromString()" and 
"JsonStringToMessage()" should have consistent behavior.


Thanks,
Qian

-- 
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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to