And what about a mixture: will (Java) classes generated by 2.4.1 work with the 2.5.0 library ?
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, <[email protected] <javascript:>> 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/protobuf?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
