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

网络请求时实体类型解析报错 #25

Open
timlusailing opened this issue May 4, 2018 · 2 comments
Open

网络请求时实体类型解析报错 #25

timlusailing opened this issue May 4, 2018 · 2 comments

Comments

@timlusailing
Copy link

timlusailing commented May 4, 2018

大牛!我如下调用时发现个问题,
image

如果实体类PrivateListResp也是个泛型类,调用时报错UncaughtException detected: java.lang.ClassCastException: libcore.reflect.ParameterizedTypeImpl cannot be cast to java.lang.Class

@Vancons
Copy link

Vancons commented May 4, 2018

@timlusailing 你看报的异常,不是这个库的问题吧

@timlusailing
Copy link
Author

我试了如果PrivateListResp不是泛型类就没问题了,如果是泛型类就会解析失败,用的是你提供的方法XHttp.analysisClassInfo,
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants