<i18n dev> RFR: 8358819: The first year is not displayed correctly in Japanese Calendar

Naoto Sato naoto at openjdk.org
Wed Jun 11 16:13:32 UTC 2025


On Wed, 11 Jun 2025 07:46:09 GMT, Justin Lu <jlu at openjdk.org> wrote:

> So we are updating the CLDRConverter to adapt the old COMPAT style pattern: "yyyy" when using Japanese calendar for LONG or FULL `SimpleDateFormat` patterns, such that it can replicate the old "gannen" style which emits the 元.

Yes, that’s correct. The patterns used in CLDR, SimpleDateFormat, and DateTimeFormatterBuilder are similar, but there are some differences that can be quite a pain. CLDRConverter tries to handle these differences, but I don’t think it’s entirely accurate. This case falls into that category.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/25732#issuecomment-2963411259


More information about the i18n-dev mailing list