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

Documentation in Month refers to quarters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 8u45
    • core-libs
    • b84
    • x86_64
    • windows_7

        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-

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

                Created:
                Updated:
                Resolved: