On Mon, Dec 14, 2015 at 1:58 AM <[email protected]> wrote:

> Hi Feng,
>
> Thanks for your confirmation.
>
> For our issue of not able to send messages after upgrading to protobuf
> 2.6.1, our application depends on an API which was compiled with
> protobuf 2.4.1, when we try to use that particular API in our application
> with protobuf 2.6.1, we get the following exception:
>
> java.lang.UnsupportedOperationException: This is supposed to be overridden
> by subclasses.
>         at
> com.google.protobuf.GeneratedMessage.getUnknownFields(GeneratedMessage.java:192)
>
> Some other sources on the net saying messages compiled with a particular
> version of protobuf would not work when run with a different version of
> protobuf.
>
> Is there a solution to this issue, provided that I won't be able to change
> the API that depends on protobuf 2.4.1?
>
This is a known issue and we don't any good solution for it. Basically your
project and your dependencies need to use the same version of protobuf. If
not, there will be incompatible problems like this. From v3.0.0, we will
provide backward binary compatibilities of the proto Java runtime. I.e., if
you have a dependency that uses protobuf v3.0.0, after upgrading protobuf
to v3.0.5 it will continue to work. For old versions though, repackaging is
probably the only viable solution.


>
> Thanks,
> Francis
>
>
> On Saturday, December 12, 2015 at 4:05:24 PM UTC+8, Feng Xiao wrote:
>
>>
>>
>> On Thu, Dec 10, 2015 at 7:41 PM, <[email protected]> wrote:
>>
>>> Hi Feng,
>>>
>>> I am also using protocol buffer for both Java and C#. Is there a C# API
>>> for 2.6.1?
>>>
>> We will focus on v3.0.0 release and will not have a C# release for 2.6.1.
>>
>>
>>> It looks like the latest version for the csharp-port project is 2.4.1
>>> and its in the process of migrating back to the protocol buffer V3 main
>>> project.
>>>
>>> The reason I am asking is because my Java application is using 2.6.1 and
>>> my C# application cannot communicate with the Java application with 2.4.1.
>>>
>> Protobuf wire format is compatible across all versions. Can you explain
>> more about why 2.6.1 doesn't communicate with 2.4.1?
>>
>>
>
>>> Thanks,
>>> Francis
>>>
>>>
>>> On Wednesday, October 22, 2014 at 7:31:04 AM UTC+8, Feng Xiao wrote:
>>>
>>>> Hi all,
>>>>
>>>> I just published Protocol Buffers v2.6.1:
>>>> https://github.com/google/protobuf/releases/tag/2.6.1
>>>>
>>>> 2014-10-20 version 2.6.1:
>>>>
>>>>   C++
>>>>   * Added atomicops support for Solaris.
>>>>   * Released memory allocated by InitializeDefaultRepeatedFields() and
>>>>     GetEmptyString(). Some memory sanitizers reported them as memory
>>>> leaks.
>>>>
>>>>   Java
>>>>   * Updated DynamicMessage.setField() to handle repeated enum values
>>>>     correctly.
>>>>   * Fixed a bug that caused NullPointerException to be thrown when
>>>>     converting manually constructed FileDescriptorProto to
>>>>     FileDescriptor.
>>>>
>>>>   Python
>>>>   * Fixed WhichOneof() to work with de-serialized protobuf messages.
>>>>   * Fixed a missing file problem of Python C++ implementation.
>>>>
>>>> I'll soon upload it to Maven and pypi for Java and Python respectively.
>>>>
>>>> Cheers,
>>>> Feng
>>>>
>>> --
>>>
>> 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.
>

-- 
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