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

java.time.chrono.HijrahChronology.eraOf() assertions may lead to misunderstanding

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b67

      Backports

        Description

        The spec for the java.time.chrono.HijrahChronology.eraOf() asserts:

        "Later eras must have sequentially higher values. Earlier eras must have sequentially lower values."

        https://docs.oracle.com/javase/8/docs/api/java/time/chrono/HijrahChronology.html#eraOf-int-

        whereas

        "The Hijrah calendar system has only one era covering the proleptic years greater than zero."

        that may lead to misunderstanding.

        https://docs.oracle.com/javase/8/docs/api/java/time/chrono/HijrahEra.html

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                rriggs Roger Riggs
                Reporter:
                ostrizhe Olga Strizhenko (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: