Details
Description
The JapaneseEra class defines the 4 pre-existing Eras with a defined start date.
These dates are used for *some* of the methods that map dates to eras JapaneseEra.from(localdate).
But other methods, JapaneseDate.ofYearDay(Era, yoe, dayOfYear) go directly to the java.util.JapaneseImprerialCalendar.
But the hard coded start dates do not match the start dates configured in lib/calendar.properties.
This occurs in JapaneseEra.MEIJI (Sept 8 vs Jan 1).
These dates are used for *some* of the methods that map dates to eras JapaneseEra.from(localdate).
But other methods, JapaneseDate.ofYearDay(Era, yoe, dayOfYear) go directly to the java.util.JapaneseImprerialCalendar.
But the hard coded start dates do not match the start dates configured in lib/calendar.properties.
This occurs in JapaneseEra.MEIJI (Sept 8 vs Jan 1).
Attachments
Issue Links
- relates to
-
JDK-8023556 Update javadoc for start of Meiji era
- Closed
-
JDK-8044671 NPE from JapaneseEra when a new era is defined in calendar.properties
- Closed