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

Incorrect javadoc in DateTimeFormatterBuilder.appendPattern() for 'uu'/'yy'

XMLWordPrintable

    • b23
    • generic
    • generic
    • Not verified

      A DESCRIPTION OF THE PROBLEM :
      In appendPattern​(String pattern) method, following pattern letters/builder mappings are presented:
        Pattern Count Equivalent builder methods
          uu 2 appendValueReduced(ChronoField.YEAR, 2, 2000)
          yy 2 appendValueReduced(ChronoField.YEAR_OF_ERA, 2, 2000)

      The problem is there is no appendValueReduced method which takes 3 parameters. I guess one of them is missing here.


            naoto Naoto Sato
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: