-
Notifications
You must be signed in to change notification settings - Fork 511
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
[BUG] 兼容版本2.0.9 JSON.parseObject 转换实体 时间格式空串会默认 1970-01-01 08:00:00属性值 #550
Comments
wenshao
added a commit
that referenced
this issue
Jul 13, 2022
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.10-SNAPSHOT/ |
好的 我试试 谢谢大佬
浮生ふ物语
***@***.***
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2022年7月13日(星期三) 上午9:32
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [alibaba/fastjson2] [BUG] 兼容版本2.0.9 JSON.parseObject 转换实体 时间格式空串会默认 1970-01-01 08:00:00属性值 (Issue #550)
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.10-SNAPSHOT/
问题已修复,请用2.0.10-SNAPSHOT版本验证,2.0.10版本预计在7月底发布
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
我用的 是1.x的 兼容版本 包名不是fastjson2的 能否 给一个 这个2.0.10的 快照 |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
问题描述
简要描述您碰到的问题。
升级兼容版本 2.0.9 出现 转换实体 时间类型空串 默认1970 数据值
1.2.83 没这默认
环境信息
请填写以下信息:
重现步骤
如何操作可以重现该问题:
//可在此输入示例代码
JSON.parseObject({"ieFlag":"I","isIgnore":"0","status":0,"ciqStatus":"","bizDate":"2022-07-12","ciqCommitType":"0","customMaster":"4732","cusType":"1","seqNo":"","preEntryId":"","entryId":"","iePort":"4732","manualNo":"E534118A0032","ieDate":"2022-07-12","ddate":""} , 实体.class);
期待的正确结果
对您期望发生的结果进行清晰简洁的描述。
对应实体 ddate 属性 应该是null 而不是默认1970 这样得数据 因为是空串
相关日志输出
请复制并粘贴任何相关的日志输出。
如图 调试 信息
附加信息
如果你还有其他需要提供的信息,可以在这里填写(可以提供截图、视频等)。





The text was updated successfully, but these errors were encountered: