On Tue, 7 Nov 2023 15:15:19 GMT, Shaojin Wen <d...@openjdk.org> wrote:
>> Within java.util.Formatter, the year formatter supports only the range >> [0,9999]. >> Only ISO_STANDARD_DATE has a ISO 8601 format defined for numbers outside >> that range. >> The formatting in java.time is defined over the full range of years. > > I think it is more reasonable for ISO_STANDARD_DATE to be consistent with > java.time.DateTimeFormatter, ISO 8601 format is not localized. IIUC, what we are trying to fix here is to align the weird *behavior* outside of 0-9999 in java.util.Formatter with java.time's, not how they are represented. j.u.Formatter already formats numbers in local digits, so I believe it is natural to use the localized negative prefix as well. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/16033#discussion_r1385229360