grpc-java icon indicating copy to clipboard operation
grpc-java copied to clipboard

Remove usage of deprecated protobuf method (protobuf::compiler::java::ClassName) in java_generator.cpp

Open sophiechang opened this issue 1 month ago • 1 comments

What version of gRPC-Java are you using?

HEAD

What is your environment?

N/A

What did you expect to see?

Deprecated function not used

See https://github.com/protocolbuffers/protobuf/commit/ca4fb2fdab93e15a81602aa0c837c675d32a692e for update

What did you see instead?

Deprecated function used here https://github.com/grpc/grpc-java/blob/master/compiler/src/java_plugin/cpp/java_generator.cpp#L216C10-L216C45

Steps to reproduce the bug

Compile and treat deprecated-declarations as error

sophiechang avatar Nov 03 '25 19:11 sophiechang

This can be done once we have upgraded past Protobuf major version 33 which introduced QualifiedClassName.

kannanjgithub avatar Nov 05 '25 10:11 kannanjgithub