lukaszlenart opened a new pull request, #1616: URL: https://github.com/apache/struts/pull/1616
## Summary Backport of #1603 to the 6.8.x branch. - Add serialization/deserialization support for 6 java.time types (`LocalDate`, `LocalDateTime`, `LocalTime`, `ZonedDateTime`, `OffsetDateTime`, `Instant`) using ISO-8601 defaults - Add Calendar deserialization support (was serialize-only) - `@JSON(format="...")` annotation works for per-field custom formats on all new types - Existing `Date`/`Calendar` serialization behavior unchanged Fixes [WW-4428](https://issues.apache.org/jira/browse/WW-4428) ## Test plan - [x] Each java.time type serializes to expected ISO format - [x] Each java.time type deserializes from ISO string - [x] `@JSON(format="dd/MM/yyyy")` custom format works for serialization and deserialization - [x] Calendar deserialization works - [x] Null value handling for temporal types - [x] Round-trip test: serialize → deserialize → assert equality (LocalDate, Instant, ZonedDateTime) - [x] Custom format for OffsetDateTime serialization and deserialization - [x] Malformed input throws JSONException - [x] Existing Date/Calendar tests still pass (regression) 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
