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

XMLWordPrintable

    • b67

        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

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

                Created:
                Updated:
                Resolved: