Skip to content

Disable lenient parsing in DateFormType#4175

Open
gilisd wants to merge 1 commit intoflowable:mainfrom
gilisd:fix/date-form-type-lenient-parsing
Open

Disable lenient parsing in DateFormType#4175
gilisd wants to merge 1 commit intoflowable:mainfrom
gilisd:fix/date-form-type-lenient-parsing

Conversation

@gilisd
Copy link

@gilisd gilisd commented Mar 4, 2026

FastDateFormat.parseObject() silently accepted invalid dates by rolling over values (e.g. month 13 became month 1 of the next year). Use SimpleDateFormat with setLenient(false) to reject invalid dates.

Check List:

  • Unit tests: YES
  • Documentation: NA

FastDateFormat.parseObject() silently accepted invalid dates by rolling
over values (e.g. month 13 became month 1 of the next year).
Use SimpleDateFormat with setLenient(false) to reject invalid dates.
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