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

[Fmt-Ch] Misleading variable name in ChoiceFormat example

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.4.0, 5.0
    • Fix Version/s: 6
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b43
    • CPU:
      generic, x86
    • OS:
      generic, windows_nt

      Description



      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)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: