You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2019/12/26 06:27:32 UTC

[GitHub] [dubbo-samples] hellocc1996 opened a new issue #133: 使用抽象类作为dubbo接口的入参,不能进行泛化调用

hellocc1996 opened a new issue #133: 使用抽象类作为dubbo接口的入参,不能进行泛化调用
URL: https://github.com/apache/dubbo-samples/issues/133
 
 
   对于方法参数类型数组
   如果是基本类型,如 int 或 long,可以使用 int.class.getName()获取其类型;
   如果是基本类型数组,如 int[],则可以使用 int[].class.getName();
   如果是 POJO,则直接使用全类名,如 com.alibaba.dubbo.samples.generic.api.Params。
   
   如果我的入参是一个抽象类,有没有什么方法泛化调用?正常调用的话,接收的入参会带上一个对应抽象类实现类的签名,所以没什么问题,但泛化调用的话,找不到对应的pojo就会空指针

----------------------------------------------------------------
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

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org