kitex-contrib / codec-dubbo

支持 kitex <-> dubbo 互通的 dubbo 协议编解码器。
Apache License 2.0
16 stars 14 forks source link

Proposal: support java overloading (same method name with different arguments) #60

Closed felix021 closed 9 months ago

felix021 commented 10 months ago

A dubbo-java server might have two methods with the same name but different arguments, say:

int A(int a)
int A(int a, String b)

Currently Thrift does not allow such cases, so we may need to add an extra JavaMethodName in annotation to be compatible.

A current workaround could be adding an extra method name (e.g. int B(int, String) in the java server which just forwards the request to the targeting function int A(int, String).