Don't know why I used StringBuilder in the first place in SimpleDateFormat (probably because we just added it to HEAD), but I'm committing the attached patch which reverts it to StringBuffer and syncs us with libgcj. -- Andrew :-)
Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments. See http://www.fsf.org/philosophy/no-word-attachments.html No software patents in Europe -- http://nosoftwarepatents.com "Value your freedom, or you will lose it, teaches history. `Don't bother us with politics' respond those who don't want to learn." -- Richard Stallman "We've all been part of the biggest beta test the world has ever known -- Windows" -- Victor Wheatman, Gartner
Index: java/text/SimpleDateFormat.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/text/SimpleDateFormat.java,v
retrieving revision 1.42
diff -u -3 -p -u -r1.42 SimpleDateFormat.java
--- java/text/SimpleDateFormat.java 20 Feb 2005 22:25:04 -0000 1.42
+++ java/text/SimpleDateFormat.java 23 Feb 2005 01:08:49 -0000
@@ -137,9 +137,9 @@ public class SimpleDateFormat extends Da
*/
public String toString()
{
- StringBuilder builder;
+ StringBuffer builder;
- builder = new StringBuilder(getClass().getName());
+ builder = new StringBuffer(getClass().getName());
builder.append("[field=");
builder.append(field);
builder.append(", size=");
@@ -341,7 +341,7 @@ public class SimpleDateFormat extends Da
*/
public String toString()
{
- StringBuilder output = new StringBuilder(getClass().getName());
+ StringBuffer output = new StringBuffer(getClass().getName());
output.append("[tokens=");
output.append(tokens);
output.append(", formatData=");
signature.asc
Description: Digital signature
_______________________________________________ Classpath-patches mailing list [email protected] http://lists.gnu.org/mailman/listinfo/classpath-patches
