Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8142101 | emb-9 | Roger Riggs | P4 | Resolved | Fixed | team |
A DESCRIPTION OF THE PROBLEM :
Documentation suggests that the method adds a number of quarters, whereas it should add a number of months.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Returns the month-of-year that is the specified number of months after this one.
ACTUAL -
Returns the month-of-year that is the specified number of quarters after this one.
URL OF FAULTY DOCUMENTATION :
https://docs.oracle.com/javase/8/docs/api/java/time/Month.html#plus-long-
Documentation suggests that the method adds a number of quarters, whereas it should add a number of months.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Returns the month-of-year that is the specified number of months after this one.
ACTUAL -
Returns the month-of-year that is the specified number of quarters after this one.
URL OF FAULTY DOCUMENTATION :
https://docs.oracle.com/javase/8/docs/api/java/time/Month.html#plus-long-
- backported by
-
JDK-8142101 Documentation in Month refers to quarters
-
- Resolved
-
- duplicates
-
JDK-8190364 Month.plus method javadoc is misleading
-
- Closed
-