-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Open
Description
Edit by @ejona86: Protobuf has resolved the incompatibility with protobuf-java 4.x. For current status, see my two comments starting at #11015 (comment)
Is your feature request related to a problem?
I would like to use the latest released version of Protobuf (4.26.0) but I cannot as gRPC is still using the old version.
Describe the solution you'd like
Update Protobuf dependency and make it work with the new version.
Describe alternatives you've considered
I hoped that the update would be easy (just a version bump) so I tried doing it myself but it resulted in a compilation failure so I'll leave it to you to figure it out.
The failure:
> Task :grpc-protobuf:compileJava FAILED
grpc-java/protobuf/src/main/java/io/grpc/protobuf/StatusProto.java:38: error: cannot access GeneratedMessageV3
ProtoLiteUtils.metadataMarshaller(com.google.rpc.Status.getDefaultInstance()));
^
class file for com.google.protobuf.GeneratedMessageV3 not found
grpc-java/protobuf/src/main/java/io/grpc/protobuf/StatusProto.java:171: error: cannot access Builder
.setCode(status.getCode().value());
^
class file for com.google.protobuf.GeneratedMessageV3$Builder not found
2 errors
augi, ganadist, nao0811ta, igorbolic, jitrapon and 35 more