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
I'm happy to raise a PR to fix but I'm having a hard time getting the local build to work end to end on MacOS arm64 and Linux arm64. I imagine this will require not only changing the compiler but also potentially updating tests and regenerating code with the new compiler.
The text was updated successfully, but these errors were encountered:
Yeah, we need to use the fully-qualified String. I know it is annoying for us Java developers to need to build C++, but let's see if that gets working in #10317.
Currently, the gRPC compiler isn't properly using the fully qualified
string name `java.lang.String` instead of `String`. Update the generator
to use the `$String$` alias to avoid compile issues with protobuf
messages called String.
Fixes#10316.
Currently, the gRPC compiler isn't properly using the fully qualified
string name `java.lang.String` instead of `String`. Update the generator
to use the `$String$` alias to avoid compile issues with protobuf
messages called String.
Fixesgrpc#10316.
What version of gRPC-Java are you using?
v1.56.0
What is your environment?
Linux, Java 17
What did you expect to see?
Generated code from the gRPC Java compiler should use fully qualified names for
String
.What did you see instead?
Compilation error for inputs that include a message type named
String
.Steps to reproduce the bug
To generate code, I'm using buf with this
buf.gen.yaml
:The issue seems to be that the variable here
grpc-java/compiler/src/java_plugin/cpp/java_generator.cpp
Line 1224 in f3399e3
grpc-java/compiler/src/java_plugin/cpp/java_generator.cpp
Line 992 in f3399e3
grpc-java/compiler/src/java_plugin/cpp/java_generator.cpp
Line 994 in f3399e3
grpc-java/compiler/src/java_plugin/cpp/java_generator.cpp
Line 1152 in f3399e3
I'm happy to raise a PR to fix but I'm having a hard time getting the local build to work end to end on MacOS arm64 and Linux arm64. I imagine this will require not only changing the compiler but also potentially updating tests and regenerating code with the new compiler.
The text was updated successfully, but these errors were encountered: