On Wed, Aug 22, 2012 at 6:59 PM, Jason Hsueh <jas...@google.com> wrote:
> Is the descriptor you provide to to the DynamicMessage the same exact object
> as the descriptor for the generated message? It looks like you are only
> comparing against some descriptorMap, based on the name of the generated
> type.
>
> If you want to be able to do this, your descriptorMap should simply contain
> the descriptors of the generated types. You are only allowed to call
> mergeFrom on two messages that have the same descriptor (compared by
> identity).

Another gotcha I discovered in this area is that extensions won't be
recognized unless the extension that is registered refers to the same
(by identity) base message descriptor as the descriptor used to
construct the DynamicMessage.

Oliver

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to