Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084299 | emb-9 | Roger Riggs | P3 | Resolved | Fixed | team |
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
"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
- backported by
-
JDK-8084299 java.time.chrono.HijrahChronology.eraOf() assertions may lead to misunderstanding
-
- Resolved
-