Pre-check
Search before asking
Apache Dubbo Component
Java SDK (apache/dubbo)
Dubbo Version
Dubbo Java 3.3.4, Java 21, macOS 15.5
Steps to reproduce this issue
Generated source code Dubbo<ServiceName>Triple has a conflict class usage when the proto file name is message.proto, which generates a Message.java, it's conflicted with the protobuf buildin class, dubbo doesn't handle the full class name correctly, the static code generated by dubbo use the simple class name.
public final class DubboServiceNameTriple {
public static final String SERVICE_NAME = ServiceName.SERVICE_NAME;
private static final StubServiceDescriptor serviceDescriptor = new StubServiceDescriptor(SERVICE_NAME, ServiceName.class);
static {
org.apache.dubbo.rpc.protocol.tri.service.SchemaDescriptorRegistry.addSchemaDescriptor(SERVICE_NAME, Message.getDescriptor()); // !!!
StubSuppliers.addSupplier(SERVICE_NAME, DubboServiceNameTriple::newStub);
StubSuppliers.addSupplier(ServiceName.JAVA_SERVICE_NAME, DubboServiceNameTriple::newStub);
StubSuppliers.addDescriptor(SERVICE_NAME, serviceDescriptor);
StubSuppliers.addDescriptor(ServiceName.JAVA_SERVICE_NAME, serviceDescriptor);
}
What you expected to happen
Handle the generated code class name correctly.
Anything else
No response
Are you willing to submit a pull request to fix on your own?
Code of Conduct
Pre-check
Search before asking
Apache Dubbo Component
Java SDK (apache/dubbo)
Dubbo Version
Dubbo Java 3.3.4, Java 21, macOS 15.5
Steps to reproduce this issue
Generated source code
Dubbo<ServiceName>Triplehas a conflict class usage when the proto file name ismessage.proto, which generates aMessage.java, it's conflicted with the protobuf buildin class, dubbo doesn't handle the full class name correctly, the static code generated by dubbo use the simple class name.What you expected to happen
Handle the generated code class name correctly.
Anything else
No response
Are you willing to submit a pull request to fix on your own?
Code of Conduct