Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] proto use option java_multiple_files = false; #15010

Open
4 tasks done
freedom0123 opened this issue Dec 21, 2024 · 0 comments
Open
4 tasks done

[Bug] proto use option java_multiple_files = false; #15010

freedom0123 opened this issue Dec 21, 2024 · 0 comments
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage

Comments

@freedom0123
Copy link

Pre-check

  • I am sure that all the content I provide is in English.

Search before asking

  • I had searched in the issues and found no similar issues.

Apache Dubbo Component

Java SDK (apache/dubbo)

Dubbo Version

Dubbo 3.2.0
SpringBoot: 2.7.18
JDK 1.8
OS: window

Steps to reproduce this issue

The proto file

syntax = "proto3";
option java_multiple_files = false;

option java_package = "com.coding.api.protobuf2";

option java_outer_classname = "HelloProtoPro";

message HelloRequestPro {
  string username = 1;
}

message HelloResponsePro {
  string result = 1;
}

service HelloServicePro {
  rpc hello(HelloRequestPro) returns (HelloResponsePro){}
}

The client and server are unable to get the parameter values

the Server code

@DubboService
@Slf4j
public class UserServiceProtobufImpl implements HelloService {
    @Override
    public HelloResponse hello(HelloRequest request) {
        String username = request.getUsername();
        // print log
        HelloResponse.Builder responseBuilder = HelloResponse.newBuilder();
        return responseBuilder.setResult("success").build();
    }

    @Override
    public CompletableFuture<HelloResponse> helloAsync(HelloRequest request) {
        return null;
    }
}

What you expected to happen

proto file support the option

option java_multiple_files = true;

Anything else

No response

Are you willing to submit a pull request to fix on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

@freedom0123 freedom0123 added component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage labels Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage
Projects
Status: Todo
Development

No branches or pull requests

1 participant