JDK-8212941 : Support new Japanese era in java.time.chrono.JapaneseEra
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.time
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2018-10-24
  • Updated: 2019-05-21
  • Resolved: 2018-10-30
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 12 JDK 8 Other
11.0.3-oracleFixed 12 b18Fixed 8u211Fixed openjdk8u212Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Sub Tasks
JDK-8213053 :  
Description
In order to reduce such future spec change when a new era needs to be added, loosening the JapaneseEra spec would be desired, such that :-

- of(int)/valueOf(String) may accept valid era strings that represent eras beyond the predefined era singletons.
- values() method returns an array that contains beyond known eras.
Comments
Fix Request Request to modify java.time.chrono.JapaneseEra class to allow introduction of new Japanese Eras. A new Java SE 11 Maintenance Release is planned. review thread: https://mail.openjdk.java.net/pipermail/core-libs-dev/2019-January/058230.html
28-01-2019

I am supportive of the proposed changes. I also note that the Javadoc in `of(int)` is poorly worded and missing a full stop after "value 1"
26-10-2018