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

[Fmt-Ch] Misleading variable name in ChoiceFormat example

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 1.4.0, 5.0
    • core-libs
    • b43
    • generic, x86
    • generic, windows_nt



      Name: ddT132432 Date: 10/04/2001


      java version "1.3.1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
      Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)


      There is a textual error in the API specification at this URL:
      http://java.sun.com/products/jdk/1.2/docs/api/java/text/ChoiceFormat.html


      The text gives the following example:
      String[] monthNames = {"Sun","Mon","Tue","Wed","Thur","Fri","Sat"};

      Shouldn't the variable be more meaningful like
      String[] dayNames = {"Sun","Mon","Tue","Wed","Thur","Fri","Sat"};
      (Review ID: 133160)
      ======================================================================

            peytoia Yuka Kamiya (Inactive)
            ddressersunw Daniel Dresser (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: