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

java.text.ChoiceFormat pattern behavior is not well documented.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 22
    • 5.0
    • core-libs
    • b15
    • generic
    • generic

      The class java.text.ChoiceFormat contains a couple of methods which are not well documented. In addition, although there is an example of a pattern, there is no concrete syntax that defines a ChoiceFormat pattern (unlike the other Format classes).

      public ChoiceFormat(String newPattern)
        - The format of newPattern is not specified. No links to related classes and format specification. Null or invalid pattern is not mentioned.

      public void applyPattern(String newPattern)
        - Has the similar problem

      public String toPattern()
        - The possible differences between applyPattern and toPattern result is not mentioned.


      ###@###.### 2005-2-14 12:19:00 GMT

            jlu Justin Lu
            agavrilosunw Alexey Gavrilov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: