On Thu, Aug 11, 2016 at 12:21 PM, Jeff Olson <[email protected]> wrote:

> I've read through the release documents
> <https://github.com/google/protobuf/releases/tag/v3.0.0> for Protocol
> Buffers v3.0.0 but I can't find any statements regrading binary
> compatibility with version 2.6.1 (or earlier). There are a couple of things
> I'd like to know:
>
>
>    1. If I dump a 3.0.0 version of the com.google.protobuf/protobuf-java.jar
>    in a project the depends on java classes generated by protoc v2.6.1 (or
>    v2.5.0) will everything still work? That is, is the java runtime backwards
>    compatible?
>
> Unfortunately no. The 3.0.0 version protobuf-java.jar will not work with
java classes generated by protoc v2.6.1 (or v2.5.0). For those who can not
upgrade to 3.0 directly, we are considering releasing a 2.7 version which
provides the following compatibility guarantees:
1. 2.7 protobuf-java.jar will be compatible with java classes generated by
protoc 2.6.1 and protoc 2.5.0.
2. 3.0 protobuf-java.jar will be compatible with java classes generated by
protoc 2.7

I.e., it allows you to upgrade to 3.0 in two steps: upgrade to 2.7, and
after all your dependencies are upgraded to either 2.7 or 3.0, you can
upgrade to 3.0 as well. It's not an ideal solution, but we hope it can help
ease the migration pain for some users. I'm testing this 2.7 version in a
github branch right now: https://github.com/google/protobuf/tree/2.7.0. If
you are interested, feel free to test it and any feedback is welcome.


>
>    1. Is the binary wire format the same for purely proto2 messages? If I
>    serialize messages generated from proto2 sources using the 3.0.0 java
>    runtime will clients using protobuf v2.6.1 be able to decode the messages
>    correctly?
>
> Yes. The wire format stays the same as long as you are using the proto2
syntax version.

Thanks,
> Jeff
>
> --
> 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 https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to