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

LocalDate 'toString' documentation contains incorrect output format information

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 13
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Windows / JRE 13.0.1

      A DESCRIPTION OF THE PROBLEM :
      LocalDate toString doc contains following text
          <b>The output will be in the ISO-8601 format uuuu-MM-dd.</b>
      Here 'uuuu' is incorrect since it is day number of week. It has to be 'yyyy'

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Most(all?) of java api docs contain the above wrong information. Below is one such.
      https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/time/LocalDate.html#toString()

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The doc should contain the below
        <b>The output will be in the ISO-8601 format yyyy-MM-dd.</b>
      ACTUAL -
      The doc is containing
      <b>The output will be in the ISO-8601 format uuuu-MM-dd.</b>

      FREQUENCY : always


        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: