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

Error in documentation of class DateTimeFormatter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 8, 9
    • core-libs

      FULL PRODUCT VERSION :
      java 8

      A DESCRIPTION OF THE PROBLEM :
      Documentation gives this line of code to format date:
      "
      String text = date.toString(formatter);
      "

      It should be
      "
      String text = date.format(formatter);
      "

      BTW: The line above says correctly that the format method is for formatting.


      REPRODUCIBILITY :
      This bug can be reproduced always.

            rriggs Roger Riggs
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: