Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

服务测试 invoke通过setInterface,方法reference.get()无法正确获取服务代理 #305

Closed
qq925716471 opened this issue Feb 15, 2019 · 0 comments · Fixed by #306

Comments

@qq925716471
Copy link
Contributor

泛化调用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

@kexianjun kexianjun mentioned this issue Feb 15, 2019
@qq925716471 qq925716471 changed the title 服务测试 服务测试 invoke通过setInterface,方法reference.get()无法正确获取服务代理 Feb 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant