diff --git a/libjava/classpath/ChangeLog.gcj b/libjava/classpath/ChangeLog.gcj index 9349f37d98a..336813b7f4c 100644 --- a/libjava/classpath/ChangeLog.gcj +++ b/libjava/classpath/ChangeLog.gcj @@ -1,3 +1,8 @@ +2007-02-09 Gary Benson + + * javax/management/ObjectName.java + (quote): Initialize StringBuilder correctly. + 2007-02-08 Gary Benson * javax/management/MBeanServerFactory.java diff --git a/libjava/classpath/javax/management/ObjectName.java b/libjava/classpath/javax/management/ObjectName.java index 0e6bf2fd9cf..573b98488c1 100644 --- a/libjava/classpath/javax/management/ObjectName.java +++ b/libjava/classpath/javax/management/ObjectName.java @@ -674,7 +674,8 @@ public class ObjectName */ public static String quote(String string) { - StringBuilder builder = new StringBuilder('"'); + StringBuilder builder = new StringBuilder(); + builder.append('"'); for (int a = 0; a < string.length(); ++a) { char s = string.charAt(a); diff --git a/libjava/classpath/lib/javax/management/ObjectName.class b/libjava/classpath/lib/javax/management/ObjectName.class index 9a94089fc8d..63b44d45de9 100644 Binary files a/libjava/classpath/lib/javax/management/ObjectName.class and b/libjava/classpath/lib/javax/management/ObjectName.class differ