Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

当日期长度为9时,反序列化BUG #4299

Closed
stone222 opened this issue Sep 30, 2022 · 3 comments
Closed

当日期长度为9时,反序列化BUG #4299

stone222 opened this issue Sep 30, 2022 · 3 comments

Comments

@stone222
Copy link

当日期长度为9时,例如2022-10-1,当对它进行反序列化到对象时,会报异常

{"testDate":"2022-10-1"}
public class DemoDto implements java.io.Serializable {
    private Date testDate;
}
DemoDto dto = JSON.parseObject(strjson, DemoDto.class);

为修复此问题,我提交了一个PR

#4297

@wenshao
Copy link
Member

wenshao commented Oct 6, 2022

2.0.15版本已经支持,请升级到2.0.15版本
https://github.com/alibaba/fastjson2/wiki/fastjson_1_upgrade_cn

@stone222
Copy link
Author

stone222 commented Oct 9, 2022

1.x版本不再更新了吗?必须升级到2.x版本吗?

@wenshao
Copy link
Member

wenshao commented Nov 12, 2022

https://github.com/alibaba/fastjson2/releases/tag/2.0.19
1.x不再更新,请用2.0.19版本

@wenshao wenshao closed this as completed Nov 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants