Fix Version/s: 16
Compatibility Risk Description:With this change, the exception will not be thrown with years of 3 digits or less.
Interface Kind:Java API
Remove the restriction in
java.time.Year.parse() method which requires the argument to have at least 4 digits.
java.time.Year.parse(CharSequence) method requires the argument to have at least four digits. For example,
is currently throwing a DateTimeParseException. To parse year 200 correctly, the argument needs zero paddings, ie., "0200".
Make the parsing more lenient. It should accept years without leading zeroes.
Remove the following sentence in the method description of
Years outside the range 0000 to 9999 must be prefixed by the plus or minus symbol.