[protobuf] Java Serialization: Extension goes "missing"

2013-06-03 Thread Stik kos
I'm using a protobuf java file inside a class which gets serialized (using the default Java serialization) and I noticed that the extensions aren't available after de-serializing the object. *This is my proto file:* message ExtensionTest { > extensions 100 to max; > > optional string parentAttr

Re: [protobuf] Java Serialization: Extension goes "missing"

2013-06-03 Thread Feng Xiao
On Mon, Jun 3, 2013 at 11:54 AM, Stik kos wrote: > I'm using a protobuf java file inside a class which gets serialized (using > the default Java serialization) and I noticed that the extensions aren't > available after de-serializing the object. > > *This is my proto file:* > > message ExtensionT

Re: [protobuf] Java Serialization: Extension goes "missing"

2013-06-03 Thread Stik kos
I use parseFrom if i de-serialise the Protobuf object myself from a byte-array but in this case, the protobuf object is just a member of a Serializable Java Object which gets serialized using the Java Serialization (not using pro to buf serialisation). Where would i put the mergeFrom in such a c

Re: [protobuf] Java Serialization: Extension goes "missing"

2013-06-03 Thread Feng Xiao
On Mon, Jun 3, 2013 at 12:51 PM, Stik kos wrote: > I use parseFrom if i de-serialise the Protobuf object myself from a > byte-array > but in this case, the protobuf object is just a member of a Serializable > Java Object which gets serialized using the Java Serialization (not using > pro to buf s