Closed jodastephen closed 10 years ago
This issue covers all work to confirm the boundaries between eras, and whether these are part of the spec of JapaneseEra
or only defined in the config file (which I assume can be replaced by users to enter a new era)
bugs.sun.com issue is 8023031
Does it mean that JapaneseDate covers up to 3856-12-31 (ISO)?
This may no longer be an issue. The current code for JapaneseDate(YEAR_OF_ERA) delegates to the Japanese Calendar in java.util using getActualMaximum(). So it is exact for all but the current Era and nearly MAX_INT for the current era. The original issue was based on SEIREKI; which has been removed.
Range(YEAR_OF_ERA) correctly returns the year for the previous Era and very large number for the current Era (292277006). Closing as no longer an issue.
The maximum year-of-era should be 1868, not based on the start of the current era. This corresponds to the end of Seireki.