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

Error in date arithmetic example (adding instead of subtracting)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 8u221
    • Fix Version/s: None
    • Component/s: core-libs

      Description

      A DESCRIPTION OF THE PROBLEM :
      Example in documentation states "For example, 2007-03-31 minus one month would result in the invalid date 2007-04-31." The example date should be 2007-05-31.

      See https://docs.oracle.com/javase/8/docs/api/java/time/LocalDateTime.html#minusMonths-long-


        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: