You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/05/22 01:23:43 UTC

[GitHub] [servicecomb-java-chassis] HoyerIsAlexander edited a comment on issue #1213: rpc提供方方法重名,导致消费方调用时,报方法名找不到的错误

HoyerIsAlexander edited a comment on issue #1213: rpc提供方方法重名,导致消费方调用时,报方法名找不到的错误
URL: https://github.com/apache/servicecomb-java-chassis/issues/1213#issuecomment-494616043
 
 
   提供方Api定义如下
   Interface RpcApi
   {
     void sayHi();
     void sayHi(String content);
   }
   提供方实现类型如下
   RpcApi implements RpcApi
   {
    void sayHi(){//do something};
    void sayHi(String content){//do something};
   }
   
   消费方调用如下
   CustomerRpcServie
   {
     @RpcReference(XXXX)
     RpcApi rpcApi;
     rpcApi.sayHi();
   }
   
   提供方RpcApi定义如上时,调用时会报找不到sayHi method,因为加了nickname之后RPCAPI Path变了

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services