United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4136003 Spec for java.text and java.util needs to specify required locale
JDK-4136003 : Spec for java.text and java.util needs to specify required locale

Details
Type:
Bug
Submit Date:
1998-05-07
Status:
Resolved
Updated Date:
2004-09-17
Project Name:
JDK
Resolved Date:
2004-09-17
Component:
core-libs
OS:
solaris_2.5,generic
Sub-Component:
java.text
CPU:
sparc,generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.2.0,1.3.0
Fixed Versions:
5.0 (b28)

Related Reports
Duplicate:

Sub Tasks

Description
Name: mgC56079			Date: 05/07/98



The specification for

  java.util.Locale.getAvailableLocales() 
  java.text.BreakIterator.getAvailableLocales() 
  java.text.Collator.getAvailableLocales() 
  java.text.DateFormat.getAvailableLocales() 
  java.text.DecimalFormat.getAvailableLocales() 
  java.text.Format.getAvailableLocales() 
  java.text.NumberFormat.getAvailableLocales() 

should be updated. 
It should explicitly say that Locale.ENGLISH is a core locale and is 
guaranteed to be supported on any java-compatible platform.
The core locale used to be Locale.US prior to jdk1.2beta3,
however, this has been changed to Locale.ENGLISH in jdk1.2beta3 and beta4,
thus invalidating a number of JCK tests.

If this is an intended change, it should be reflected in documentation.

======================================================================

                                    

Comments
EVALUATION

Both Locale.US and Locale.ENGLISH are core locales.  Is there still a problem?  I'm closing this assuming this means there's no problem.
alan.liu@eng 1998-08-05


I did a search on JDK 1.3 javadoc and haven't found any explicit statement
that Locale.US and/or Locale.ENGLISH are required by any conformant 
implementation. As a result, quite a few TCK tests are now challenged and
will probably be invalidated.

Could you please evaluate this issue and let us know whether there is at 
least one mandatory locale, or licensee has a full freedom in implementing
whatever locales he wants?

stanislav.avzan@eng 2000-05-10

Another issue is that if Locale.US and/or Locale.ENGLISH are mandatory, are their items and/or contents a public interface?
masayoshi.okutsu@Eng 2000-05-11

Name: nl37777			Date: 10/24/2003

Added requirement "The array returned must contain at least
a Locale instance equal to Locale.US." to the specifications of the
getAvailableLocales methods in java.util.Locale, java.util.Calendar,
java.text.BreakIterator, java.text.Collator, java.text.DateFormat, and java.text.NumberFormat.

The classes java.text.Format and java.text.DecimalFormat, which are
mentioned in the description, don't have such a method.
======================================================================
                                     
2004-09-18
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger
tiger-beta

FIXED IN:
tiger-beta

INTEGRATED IN:
tiger-b28
tiger-beta

VERIFIED IN:
1.5.0_01


                                     
2004-09-18



Hardware and Software, Engineered to Work Together