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

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

对于方法参数类型数组
如果是基本类型,如 int 或 long,可以使用 int.class.getName()获取其类型;
如果是基本类型数组,如 int[],则可以使用 int[].class.getName();
如果是 POJO,则直接使用全类名,如 com.alibaba.dubbo.samples.generic.api.Params。

如果我的入参是一个抽象类,有没有什么方法泛化调用?正常调用的话,接收的入参会带上一个对应抽象类实现类的签名,所以没什么问题,但泛化调用的话,找不到对应的pojo就会空指针

[ Full content available at: https://github.com/apache/dubbo-samples/issues/133 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org