In java.time parsing a LocalDate is stricter than in joda.
We want to guarantee backwards compatibility, when migrating to java.time, therefore I replaced the strict ISO conforming formatter with a more lenient version, that mimics the behaviour we see with the joda library. In addition to the standard ISO parser it allows to:
Use a year that has a length between one and nine
Drop leading zeros for days and months
dropping days entirely, defaulting to 1
dropping days and months entirely, defaulting to 1 for both
In
java.time
parsing aLocalDate
is stricter than in joda. We want to guarantee backwards compatibility, when migrating tojava.time
, therefore I replaced the strict ISO conforming formatter with a more lenient version, that mimics the behaviour we see with the joda library. In addition to the standard ISO parser it allows to:BEC-254