Skip to content

fix: support deserializing Hutool DateTime - #7965

Open
camillezoe wants to merge 1 commit into
alibaba:mainfrom
camillezoe:main
Open

camillezoe wants to merge 1 commit into
alibaba:mainfrom
camillezoe:main

Conversation

@camillezoe

Copy link
Copy Markdown

Problem

Deserializing a formatted date string into a Hutool DateTime field fails.

Changes

  • Add a reader for Hutool DateTime without introducing a runtime dependency.
  • Preserve field-level date formats and add regression coverage.

Validation

  • mvn validate
  • mvn test
  • mvn -Dfastjson2.creatro=reflect test

Fixes #3297

中文

问题

格式化日期字符串反系列化到 Hutool DateTime 字段时会报错。

修改

  • 增加Hutool DateTime读取支持,不引入Hutool运行时依赖。
  • 支持字段级日期格式,并增加回归测试。

验证

  • 标准测试/反射模式测试和项目校验均已通过。

@CLAassistant

CLAassistant commented Nov 20, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

针对 cn.hutool.core.date.DateTime 类型的属性反序列化时报错

2 participants