JDK-8203360 : Release Note: Japanese New Era Implementation
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 7u221,8u211,11
  • Priority: P4
  • Status: Closed
  • Resolution: Withdrawn
  • OS: generic
  • CPU: generic
  • Submitted: 2018-05-17
  • Updated: 2019-04-30
  • Resolved: 2019-04-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 7 JDK 8
11Resolved 7u221Resolved 8u211Resolved
Description
The placeholder "NewEra" has been replaced with "Reiwa." Refer to the release note for JDK-8205432.

Japanese calendars, both in `java.time.chrono` and `java.util` packages support the upcoming Japanese new era, which will be in effect from May 1st, 2019. At the moment, the name of the era is not yet known, placeholder names ("������" for Japanese, "NewEra" for other languages) are provided for its display names. The placeholder names will be replaced with the legitimate era name in a future update, thus applications should not depend on those placeholder names. Use integer values to refer to the new era instead. For example:

`java.time.chrono.JapaneseEra.of(3).getDisplayName(TextStyle.FULL, Locale.US)`

or
```
new java.util.Calendar.Builder()
    .setCalendarType("japanese")
    .setFields(Calendar.ERA, 5,
        Calendar.YEAR, 1,
        Calendar.MONTH, Calendar.MAY,
        Calendar.DAY_OF_MONTH, 1)
    .build()
    .getDisplayName(Calendar.ERA, Calendar.LONG, Locale.US)
```
will output "NewEra"
Comments
Modified the text reflecting changes for JDK-8207152.
14-07-2018