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

[Fmt-Nu] Spec for NaN In DecimalFormat contradicts DecimalFormatSymbols.getNaN

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • core-libs
    • None
    • b52
    • generic
    • generic

      DecimalFormat says that:

         NaN is formatted as a single character, typically \uFFFD. This
         character is determined by the DecimalFormatSymbols object. This is
         the only value for which the prefixes and suffixes are not used.

      But DecimalFormatSymbols.getNaN() returns a String. It should be changed to be able to accommodate "NaN".

      See also http://www.unicode.org/review/#pri74 .

      Infinity has the same problem.

            naoto Naoto Sato
            okutsu Masayoshi Okutsu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: