You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following .proto file creates Java code that cannot be compiled with javac (Using protobuf 3.6.1) and Java 1.8.0_144. The problem seams to apply to any primitive except for string.
This is not a bug. You're likely mixing protoc 3.7.x with a 3.6.x protobuf-java dependency.
The empty[X]List is part of GeneratedMessageV3 since 3.7.x.
The 3.7.0 version was not yet released in maven central, however you can use protobuf-java 3.7.0-rc1 and it should work.
The following .proto file creates Java code that cannot be compiled with javac (Using protobuf 3.6.1) and Java 1.8.0_144. The problem seams to apply to any primitive except for string.
syntax = "proto3";
option java_package = "com.protobuf.test";
option java_outer_classname = "ProtoTest";
message IAmBroken
{
repeated int64 whatHappened = 1;
}
The following (redacted) output is generated when it is compiled with javac
The text was updated successfully, but these errors were encountered: