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

Month.plus method javadoc is misleading

      A DESCRIPTION OF THE PROBLEM :
      Javadoc suggests the plus method adjust the Month by quarters, not by months.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      "Returns the month-of-year that is the specified number of quarters after this one. " should be reworded to be consistent with the https://docs.oracle.com/javase/8/docs/api/java/time/Month.html#minus-long- method (i.e. change 'quarters' to 'months')

      e.g.
      "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-

            psonal Pallavi Sonal (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: