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

Incorrect example in java.text.ChoiceFormat doc

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_nt

      Description

      Name: js151677 Date: 06/10/2004


      A DESCRIPTION OF THE PROBLEM :
      Example given in this page needs some modification.
      As meaning of variable does not match to the values assigned to it !

       double[] limits = {1,2,3,4,5,6,7};
       String[] monthNames = {"Sun","Mon","Tue","Wed","Thur","Fri","Sat"};
                             ^
                             ^ "Sun" is not name of month

      REGRESSION. Last worked in version tiger-beta2

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      change it to something like

      String[] dayNames = {"Sun","Mon","Tue","Wed","Thur","Fri","Sat"};
      ACTUAL -
      String[] monthNames = {"Sun","Mon","Tue","Wed","Thur","Fri","Sat"};

      URL OF FAULTY DOCUMENTATION :
      http://java.sun.com/j2se/1.5.0/docs/api/java/text/ChoiceFormat.html
      (Incident Review ID: 277006)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                peytoia Yuka Kamiya (Inactive)
                Reporter:
                jssunw Jitender S (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: