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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 6
    • Affects Version/s: 6
    • Component/s: 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.

            Assignee:
            Naoto Sato
            Reporter:
            Masayoshi Okutsu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: