Details
-
Bug
-
Resolution: Fixed
-
P4
-
None
-
b09
-
Verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8313934 | 21.0.1 | Roger Riggs | P4 | Resolved | Fixed | b06 |
JDK-8313548 | 21 | Roger Riggs | P4 | Resolved | Fixed | b34 |
Description
The description of java.util.Instant.compareTo(Instant) is not clear that a negative value is "before", zero is equal, and positive is "after".
Other java.time classes also describe the compareTo result as the comparator value and do not mention zero.
Other java.time classes also describe the compareTo result as the comparator value and do not mention zero.
Attachments
Issue Links
- backported by
-
JDK-8313548 Clarify return value of Java Time compareTo methods
- Resolved
-
JDK-8313934 Clarify return value of Java Time compareTo methods
- Resolved
- csr for
-
JDK-8310064 Clarify Java Time documentation of the return value of compareTo methods
- Closed
- links to
-
Commit openjdk/jdk21/a228185e
-
Commit openjdk/jdk/8650026f
-
Review openjdk/jdk21/153
-
Review openjdk/jdk/14479
(2 links to)