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

Documentation in Month refers to quarters

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u45
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b84
    • CPU:
      x86_64
    • OS:
      windows_7

      Backports

        Description

        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-

          Issue Links

            Activity

            Hide
            scolebourne Stephen Colebourne added a comment -
            This is a simple documentation bug on line 382. The word "quarters" needs to be replaced by "months".
            Show
            scolebourne Stephen Colebourne added a comment - This is a simple documentation bug on line 382. The word "quarters" needs to be replaced by "months".
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/2ba5455a7fbd
            User: rriggs
            Date: 2015-09-24 15:01:18 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/2ba5455a7fbd User: rriggs Date: 2015-09-24 15:01:18 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/2ba5455a7fbd
            User: lana
            Date: 2015-09-30 22:17:42 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/2ba5455a7fbd User: lana Date: 2015-09-30 22:17:42 +0000

              People

              • Assignee:
                rriggs Roger Riggs
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: