Skip to content

Reject invalid dates in Converter.DATE#430

Merged
garydgregory merged 1 commit into
apache:masterfrom
rootvector2:converter-date-strict
Jul 11, 2026
Merged

Reject invalid dates in Converter.DATE#430
garydgregory merged 1 commit into
apache:masterfrom
rootvector2:converter-date-strict

Conversation

@rootvector2

Copy link
Copy Markdown
Contributor

Converter.DATE parses with a lenient SimpleDateFormat, so an impossible date like Fri Feb 30 ... is silently rolled over to a wrong Date instead of rejected; setLenient(false) rejects out-of-range fields while every valid Date.toString() value still parses.

@garydgregory garydgregory changed the title reject invalid dates in Converter.DATE Reject invalid dates in Converter.DATE Jul 11, 2026
@garydgregory garydgregory merged commit 8010193 into apache:master Jul 11, 2026
10 checks passed
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.

2 participants