Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8017283

JapaneseEra does not have a start date for Era SEIREKI

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 8
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Introduced In Version:
      8

      Description

      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)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rriggs Roger Riggs
                Reporter:
                rriggs Roger Riggs
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: