Summary
Throw a DateTimeParseException on resolving an out-of-range HOUR_OF_AMPM value in `ResolverStyle.SMART mode.
Problem
Client code like this:
new DateTimeFormatterBuilder()
    .appendValue(HOUR_OF_AMPM,2)
    .appendText(AMPM_OF_DAY)
    .toFormatter(US)
    .parse("12PM");does not throw a DateTimeParseException, even though the input hour number 12 is out of range for HOUR_OF_AMPM.
Solution
Throw a DateTimeParseException in such cases.
Specification
This is a behavioral change, thus no specification change is expected.
- csr of
- 
                    JDK-8223773 DateTimeFormatter Fails to throw an Exception on Invalid HOUR_OF_AMPM -           
- Resolved
 
-