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

Duration javadoc has "period" instead of "duration" in several places

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 22
    • 8, 11, 17, 21, 22
    • core-libs
    • None
    • 8
    • b24

      The javadoc for java.time.Duration has several comments that appear to have been copied from java.time.Period without making all the necessary updates. For example, in Duration.between, "The result of this method can be a negative period if the end is before the start." Since the API is careful elsewhere to distinguish between physical-time "duration" and civil-time "period", this is misleading.

            emcmanus Eamonn McManus
            emcmanus Eamonn McManus
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: