Skip to content

[BUG]JSONObject.getDate("")方法值为时间戳报错 #493

@914313670

Description

@914313670

问题描述

版本从1.2.83升级至2.0.x后
JSONObject.getDate("") 方法值为时间戳时候报错

环境信息

  • OS信息: Windows 10
  • JDK信息:Openjdk 1.8.0_312
  • 版本信息:Fastjson 2.0.7

重现步骤

1.fastjson 版本为1.2.83时候可以正常获取
image
image

2.升级至2.0.7后获取失败
image
image

期待的正确结果

JSONObject.getDate("")方法可以正常获取时间对象

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions