hu-chia opened a new issue, #15410:
URL: https://github.com/apache/dubbo/issues/15410

   ### Pre-check
   
   - [x] I am sure that all the content I provide is in English.
   
   
   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### 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.
   
   ```java
   
   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?
   
   - [ ] Yes I am willing to submit a pull request on my own!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to