Thank you for confirming this.

^ Ernest

Op donderdag 14 maart 2013 21:35:00 UTC+1 schreef Feng Xiao het volgende:
>
>
>
>
> On Thu, Mar 14, 2013 at 1:42 AM, Ernest Micklei 
> <ernest....@gmail.com<javascript:>
> > wrote:
>
>> And what about a mixture: will (Java) classes generated by 2.4.1 work 
>> with the 2.5.0 library ?
>
> No. Only serialized data is ensured to be wire-compatible across all 
> protobuf versions, not the generated code. The runtime library must have 
> the same version with the protocol compiler you use.
>  
>
>>
>> Op maandag 12 januari 2009 18:42:41 UTC+1 schreef Kenton Varda het 
>> volgende:
>>>
>>> Just to add an official response:  Yes, they will be compatible.  If 
>>> they weren't, we would consider that a very serious bug.  Inside Google we 
>>> have protobuf data written many years ago that we expect to be able to read 
>>> with the latest code.  :)
>>>
>>> On Sun, Jan 11, 2009 at 8:47 PM, <shani...@gmail.com> wrote:
>>>
>>>>
>>>> Hi,
>>>>   Lets say my proto (abcd.proto) is compiled with the protoc compiler
>>>> version 2.0.3 and my application also links to the corresponding
>>>> runtime libraries. I now run my app and store the  bytes generated
>>>> from the proto object to some persistent store (say a database).
>>>>
>>>> A month from now, I decide to upgrade to protocol buffer version 2.0.4
>>>> (which say is released) and recompile abcd.proto using the new
>>>> compiler to generate the new cpp classes. I hook my app to the new
>>>> runtime libraries and try to read the older bytes (v2.0.3) from the
>>>> persistent store. Will it be able to?
>>>>
>>>> In other words, are the bytes that are written out (for an unchanged
>>>> proto file) compatible across protobuf library versions? Will this
>>>> always be guaranteed?
>>>>
>>>> Thanks.
>>>>
>>>>
>>>>
>>>  -- 
>> 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+u...@googlegroups.com <javascript:>.
>> To post to this group, send email to prot...@googlegroups.com<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/protobuf?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to