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

Error in date arithmetic example (adding instead of subtracting)

XMLWordPrintable

      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-


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

              Created:
              Updated:
              Resolved: