I'm using ThreeTenABP and seem to have run into a difference of implementation between LocalDate.parse(String) and LocalDate.parse(String, DateTimeFormatter).
LocalDate.parse("31/02/1985", DateTimeFormatter.ofPattern("dd/MM/yyyy"))
Parses to "1985-02-28" without throwing an exception.
LocalDate.parse("2015-02-31")
DateTimeParseException: Text '2015-02-31' could not be parsed: Invalid date 'FEBRUARY 31'
The documentation almost implies this with "The string must represent a valid date" only mentioned with the formatter-less method.
How can I validate a date in a custom format like 31/02/1985 using threeten bp?