[protobuf] Re: Issue 316 in protobuf: TextFormat should have an option to ignore unknown fields

2014-07-25 Thread protobuf

Updates:
Status: WontFix
Labels: -FixedIn-2.6.0

Comment #3 on issue 316 by jie...@google.com: TextFormat should have an  
option to ignore unknown fields

http://code.google.com/p/protobuf/issues/detail?id=316

Sorry my mistake. We have decided not provide TextFormat for unknown  
fields. (2.5.0 has removed the support for c++ before release which I  
didn't notice, java will not support it either)


Text format is designed for communicating with people whereas binary format  
is for communicating with machines. People make mistakes, like spelling  
errors. These mistakes should be caught, not silently ignored. Therefore,  
text format is NOT designed with the same forward- and  
backward-compatibility properties as the binary format, and should not be  
used when such compatibility is desired.


If you find yourself wanting to ignore unknown fields when parsing a  
text-format message, you may want to rethink your design.


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


[protobuf] Re: Issue 316 in protobuf: TextFormat should have an option to ignore unknown fields

2014-07-25 Thread protobuf


Comment #2 on issue 316 by xiatao...@gmail.com: TextFormat should have an  
option to ignore unknown fields

http://code.google.com/p/protobuf/issues/detail?id=316

Will the same feature available for JsonFormat? Currently, it throws  
Exception for an unknown fields.


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


[protobuf] Re: Issue 316 in protobuf: TextFormat should have an option to ignore unknown fields

2014-07-20 Thread protobuf

Updates:
Status: Started
Owner: jie...@google.com
Labels: FixedIn-2.6.0

Comment #1 on issue 316 by jie...@google.com: TextFormat should have an  
option to ignore unknown fields

http://code.google.com/p/protobuf/issues/detail?id=316

Unknown field is supported in 2.5.0 for text format in C++. It will be  
supported in Java in our next release (2.6.0)


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