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

(fmt) Wrong Unicode value specified for format conversion character 'd'

    XMLWordPrintable

Details

    • b115
    • x86
    • windows_7
    • Verified

    Description

      A DESCRIPTION OF THE PROBLEM :
      There are 2 places in the documentation for the Formatter class that indicate the Unicode value for 'd' is '\u0054'. The actual Unicode value is '\u0065'.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      'd' '\u0065' Formats the argument as a decimal integer. The localization algorithm is applied.

      'd' '\u0065' Requires the output to be formatted as a decimal integer. The localization algorithm is applied.
      ACTUAL -
      'd' '\u0054' Formats the argument as a decimal integer. The localization algorithm is applied.

      'd' '\u0054' Requires the output to be formatted as a decimal integer. The localization algorithm is applied.

      URL OF FAULTY DOCUMENTATION :
      http://docs.oracle.com/javase/7/docs/api/java/util/Formatter.html#syntax

      Attachments

        Activity

          People

            smarks Stuart Marks
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: