-
Notifications
You must be signed in to change notification settings - Fork 459
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] #1349
Comments
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.28-SNAPSHOT/ |
https://github.com/alibaba/fastjson2/releases/tag/2.0.28 |
经测试,在没有嵌套的时候android环境已经正常了,但是在有嵌套对象的时候依旧有异常: //最终目标是要把文本数据反序列化成BackBean 对象 以下是各个对象的原始信息如下: BackBean 对象如下:
} UserBean对象如下:
} AppBean继承了AppInfo:
} AppInfo对象如下:
} |
问题描述
简要描述您碰到的问题。
实体类有日期字段如下:
@JSONField(locale = "zh", format = "yyyy-mm-dd")
private Date enddate;
环境信息
请填写以下信息:
android开发环境
重现步骤
如何操作可以重现该问题:
W/System.err: Caused by: java.time.format.DateTimeParseException: Text '1863792000000' could not be parsed at index 0
W/System.err: at java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:1949)
W/System.err: at java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1851)
W/System.err: at java.time.LocalDate.parse(LocalDate.java:394)
W/System.err: at com.alibaba.fastjson2.reader.FieldReaderDateTimeCodec.readFieldValue(FieldReaderDateTimeCodec.java:261)
W/System.err: at com.alibaba.fastjson2.reader.ObjectReaderBean.readObject(ObjectReaderBean.java:331)
W/System.err: at com.alibaba.fastjson2.reader.FieldReaderObject.readFieldValue(FieldReaderObject.java:146)
The text was updated successfully, but these errors were encountered: