Skip to content
This repository was archived by the owner on Jul 29, 2026. It is now read-only.
This repository was archived by the owner on Jul 29, 2026. It is now read-only.

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

Description

@stone222

当日期长度为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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions