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

Fastjson2生成json串字段顺序问题 #9

Closed
wenshao opened this issue Apr 18, 2022 · 1 comment
Closed

Fastjson2生成json串字段顺序问题 #9

wenshao opened this issue Apr 18, 2022 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@wenshao
Copy link
Member

wenshao commented Apr 18, 2022

在使用fastjson2 [2.0.1]时我注意到子类和父类同时使用注解@JSONField(ordinal=xxx)时,ObjectWriterCreatorASM类中fieldWriters读取父类ordinal值有误[232行],导致json串字段顺序非预期输出,在fastjson1中使用@jsontype(orders={})时,无此问题。

@wenshao wenshao added the bug Something isn't working label Apr 18, 2022
@wenshao wenshao added this to the 2.0.2 milestone Apr 18, 2022
@wenshao wenshao self-assigned this Apr 18, 2022
@wenshao
Copy link
Member Author

wenshao commented May 2, 2022

https://github.com/alibaba/fastjson2/releases/tag/2.0.2
问题已修复,请使用新版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant