Each JapaneseEra should have a start date.
The following throws an NPE.
JapaneseDate jd = JapaneseChronology.INSTANCE.dateYearDay(JapaneseEra.SEIREKI, 1, 1);
Stack trace:
java.lang.NullPointerException
at java.time.chrono.JapaneseDate.ofYearDay(JapaneseDate.java:239)
at java.time.chrono.JapaneseChronology.dateYearDay(JapaneseChronology.java:206)
The following throws an NPE.
JapaneseDate jd = JapaneseChronology.INSTANCE.dateYearDay(JapaneseEra.SEIREKI, 1, 1);
Stack trace:
java.lang.NullPointerException
at java.time.chrono.JapaneseDate.ofYearDay(JapaneseDate.java:239)
at java.time.chrono.JapaneseChronology.dateYearDay(JapaneseChronology.java:206)
- duplicates
-
JDK-8019512 No Support for JapaneseChronology before Meiji 6
- Closed