[protobuf] Extensions in Java

2010-07-27 Thread Wouter
Hello, I am basically following the approach described under Union Types in the techniques section of the documentation. I am using extensions. I have found that when deserialising protobuffers in Java it does not automatically deserialise the extensions. I have to manually create a registry (I

Re: [protobuf] Extensions in Java

2010-07-27 Thread Jason Hsueh
The C++ implementation does have a singleton registry, which allows it to magically parse extensions that are linked into the binary. This behavior can be somewhat confusing though since it relies on what the linker decides to do with generated code. The Java implementation uses an object oriented