Skip to content
New issue

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

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

Already on GitHub? # to your account

JSONObject的父类LinkedHashMap应该加上泛型 #165

Closed
louisjiang opened this issue May 5, 2022 · 5 comments
Closed

JSONObject的父类LinkedHashMap应该加上泛型 #165

louisjiang opened this issue May 5, 2022 · 5 comments
Milestone

Comments

@louisjiang
Copy link

No description provided.

@louisjiang
Copy link
Author

#110
至于这个bug,应该从scala的写法上去修复.

@louisjiang
Copy link
Author

louisjiang commented May 5, 2022

public void test1(JSONObject param1){ }
public void test1(Map<String,String> param1){ }

在2.0.2的版本这样的写法是有问题的.

@CodeInDreams
Copy link

+1,升到2.0.x就发现put方法有warning,一看源码没泛型<String,Object>

@wenshao
Copy link
Member

wenshao commented May 14, 2022

https://github.com/alibaba/fastjson2/releases
2.0.3已经发布,put方法不会警告,请用新版本

@louisjiang
Copy link
Author

这个问题仍然没有解决

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

No branches or pull requests

3 participants