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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 22
    • Affects Version/s: 8, 11, 17, 21, 22
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: