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)
======================================================================
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)
======================================================================
- duplicates
-
JDK-4510901 [Fmt-Ch] Misleading variable name in ChoiceFormat example
- Resolved