Javadoc for java.time.DayOfWeek#minus(long)

XMLWordPrintable

    • b11
    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      It's likely an erratum in the document of `java.time.DayOfWeek#minus(long)` that in

       "The calculation rolls around the start of the year from Monday to Sunday."

      This should be
      "The calculation rolls around the end of the week from Monday to Sunday."

      However in java.time.DayOfWeek#plus() it is :

      "The calculation rolls around the end of the week from Sunday to Monday."


      Both minus() and plus() uses "week" as per implementation.

      It's found in both https://docs.oracle.com/javase/8/docs/api/ and https://download.java.net/java/early_access/jdk23/docs/api/java.base/java/time/DayOfWeek.html#minus(long)


            Assignee:
            Naoto Sato
            Reporter:
            Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: