You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "qq925716471 (GitHub)" <gi...@apache.org> on 2019/02/15 08:45:06 UTC

[GitHub] [incubator-dubbo-ops] qq925716471 opened issue #305: 服务测试

泛化调用GenericServiceImpl
`public Object invoke(String service, String method, String[] parameterTypes, Object[] params) {

        reference.setInterface(service);
        GenericService genericService = reference.get();
        Object result = genericService.$invoke(method, parameterTypes, params);
        System.out.println(result);
        return result;
    }`
在第一次调用之后再次调用这个方法 reference.get()返回的仍然是第一次调用的服务并不是传入的service

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

[GitHub] [incubator-dubbo-ops] nzomkxia closed issue #305: 服务测试 invoke通过setInterface,方法reference.get()无法正确获取服务代理

Posted by "nzomkxia (GitHub)" <gi...@apache.org>.
[ issue closed by nzomkxia ]

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