[protobuf] [Java] toString not longer supported?

2013-04-04 Thread Stik kos
Hello, I just upgraded 'protobuf-java' to 2.5.0 and noticed that this upgrade breaks the default toString implementation with error: java.lang.UnsupportedOperationException: This is supposed to be overridden by subclasses. at com.google.protobuf.GeneratedMessage.getUnknownFields(GeneratedMessa

[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 Stik kos
case? On Monday, 3 June 2013 20:41:51 UTC+1, Feng Xiao wrote: > > > > > 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 th

[protobuf] Import .proto file and generated Java classes from JAR

2014-03-10 Thread Stik kos
Hello, We have defined a bunch of common messages (like Country, Currency, Money, ...) and packaged them in a JAR together with the generated (and compiled) JAVA classes. We would then like to have multiple projects include this JAR as a dependency. Is it possible to import a .proto file direc