-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
kotlin中使用泛型解析的问题 #998
Comments
似乎是kotlin自动加上泛型的上限导致,Address类没有子类.所以解析有问题.不知道有没有什么参数设置可以解决这个问题 /com/alibaba/fastjson/parser/ParserConfig.java:311 |
已经支持,预计在春节前发布新版本1.2.24 |
1.2.24已经发布,请用新版本 |
https://github.com/alibaba/fastjson/releases/tag/1.1.62.android |
kotlin中使用TypeReference解析数据的时候无法正确的解析.在相同的代码中 java代码是可以解析的.
版本 : 1.2.22
java代码
结果正确解析了
kotlin代码
结果解析失败
实体类
数据
目前追踪到:
/com/alibaba/fastjson/JSON.java:339 行 参数clazz
kotlin 参数为 : java.util.List<? extends com.cfzx.api.util.Address>
java 参数为: java.util.List<com.cfzx.api.util.Address>
导致的问题
The text was updated successfully, but these errors were encountered: