-
Notifications
You must be signed in to change notification settings - Fork 479
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
[BUG] JSONB.toBytes with org.joda.time.DateTime #2563
Comments
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.50-SNAPSHOT/ |
验证已修复,辛苦wenshao |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
JSONB.toBytes时无法处理org.joda.time.DateTime字段
环境信息
重现步骤
相关日志输出
java.lang.ClassCastException: class org.joda.time.DateTime cannot be cast to class java.time.ZonedDateTime (org.joda.time.DateTime is in unnamed module of loader 'app'; java.time.ZonedDateTime is in module java.base of loader 'bootstrap')
at com.alibaba.fastjson2.writer.ObjectWriterImplZonedDateTime.writeJSONB(ObjectWriterImplZonedDateTime.java:31)
at com.alibaba.fastjson2.writer.OWG_1_1_Bean0.writeJSONB(Unknown Source)
at com.alibaba.fastjson2.JSONB.toBytes(JSONB.java:1155)
at MutatedIssue2332_567.mutatedTest1(MutatedIssue2332_567.java:32)
The text was updated successfully, but these errors were encountered: