Hi Jon,

On Fri, 2009-08-07 at 10:53 -0700, Jon Skeet wrote:
> Have you tried using the overload of parseFrom which takes an
> extension registry?

I must admit I didn't; I somehow thought the Message was automagically
knowing it's own extensions.

> Make sure you register all the extensions first, of course - call the
> appropriate registerAllExtensions static method, passing in the
> extension registry, before calling parseFrom(src.toByteArray(),
> registry).

And, you were right, it fixed the issue.
Thank you!
-- 
Brice Figureau
My Blog: http://www.masterzen.fr/


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

Reply via email to