United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4264153 : format classes are not thread-safe, and not documented as such

Details
Type:
Bug
Submit Date:
1999-08-20
Status:
Resolved
Updated Date:
2001-05-22
Project Name:
JDK
Resolved Date:
2001-05-22
Component:
core-libs
OS:
solaris_9,solaris_8,solaris_2.6,windows_nt,solaris_7,generic,windows_xp,windows_95,windows_2000
Sub-Component:
java.text
CPU:
x86,sparc,generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
1.1.4,1.1.6,1.2.0,1.2.2,1.3.0,1.3.1,1.3.1_02,1.4.0,5.0,6
Fixed Versions:
1.4.0 (beta2)

Related Reports
Duplicate:
Duplicate:
Duplicate:
Duplicate:
Duplicate:
Duplicate:
Duplicate:
Duplicate:

Sub Tasks

Description

Name: rlT66838			Date: 08/19/99


It has been noted in bug #4146524 that the format classes are
not thread-safe.  The wisdom of this decision aside (it's bitten
a bunch of people, myself included), I have never seen any 
mention of this fact in the documentation.  Not being thread-safe 
is a significant limitation on a class, with potentially dire 
results, and not documenting the classes as such is dangerous.
(Review ID: 94152) 
======================================================================

                                    

Comments
EVALUATION

Planned for Merlin.
norbert.lindenberg@Eng 2001-03-20

Name: nl37777			Date: 05/21/2001

The specifications of Format, MessageFormat, NumberFormat,
DecimalFormat, ChoiceFormat, DateFormat, and SimpleDateFormat have been
updated to document the lack of thread-safety. We looked into making the
classes thread-safe instead, but they were never really designed for
that, and synchronizing them and other classes involved (in particular
Calendar and TimeZone) to the extent necessary would have introduced the
risk of serious performance bottlenecks.

======================================================================
                                     
2004-06-11
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
merlin-beta2

FIXED IN:
merlin-beta2

INTEGRATED IN:
merlin-beta2


                                     
2004-06-14



Hardware and Software, Engineered to Work Together