[protobuf] generated java classes from .proto file doesn't compile

2016-09-23 Thread Denis Vlah
Hello everyone, I have generated the java classes from .proto file using the protoc.exe tool (latest version) Proto syntax version is 2. Original .proto file was generated from C# classes decorated with protobuf-net attributes. The java snippet with error: public static final class Object e

Re: [protobuf] generated java classes from .proto file doesn't compile

2016-09-23 Thread 'Adam Cozzette' via Protocol Buffers
Hi Denis, thanks for reporting this. It seems to be a known bug: https://github.com/google/protobuf/issues/826 It comes down to the fact that in Java we represent tag numbers as ints (which are 32-bit signed values), and the protoc compiler is generating a tag number that will fit in an unsigned 32