United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4705328 Add CharSequence constructor to StringBuffer
JDK-4705328 : Add CharSequence constructor to StringBuffer

Details
Type:
Enhancement
Submit Date:
2002-06-20
Status:
Resolved
Updated Date:
2003-05-16
Project Name:
JDK
Resolved Date:
2003-05-16
Component:
core-libs
OS:
windows_xp
Sub-Component:
java.lang
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.0
Fixed Versions:
5.0 (tiger)

Related Reports

Sub Tasks

Description

Name: jl125535			Date: 06/20/2002


A DESCRIPTION OF THE PROBLEM :
This issue is related to bug 4230604, which discusses making
String clonable.

Not only is StringBuffer copy-able like String, but it is also
writable.  So sharing a StringBuffer is more dangerous than sharing
a String, since a change to the original appears in the copy -
and vice versa.  Supporing StringBuffer.clone() would avoid
this problem more elegantly than the 
StringBuffer(stringBuffer.toString()) approach.

(Review ID: 153790) 
======================================================================

                                    

Comments
EVALUATION

We will consider adding a new constructor StringBuffer(CharSequence) in Tiger which will address this issue.
###@###.### 2003-02-04
                                     
2003-02-04
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger

FIXED IN:
tiger

INTEGRATED IN:
tiger
tiger-b07


                                     
2004-06-14



Hardware and Software, Engineered to Work Together