From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22348 invoked by alias); 9 Feb 2007 17:17:44 -0000 Received: (qmail 22334 invoked by uid 22791); 9 Feb 2007 17:17:42 -0000 X-Spam-Check-By: sourceware.org Received: from gbenson.demon.co.uk (HELO gbenson.demon.co.uk) (80.177.220.214) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 09 Feb 2007 17:17:37 +0000 Date: Fri, 09 Feb 2007 17:17:00 -0000 From: Gary Benson To: java-patches@gcc.gnu.org Subject: FYI: Another javax.management fix Message-ID: <20070209171733.GK3935@redhat.com> Mail-Followup-To: java-patches@gcc.gnu.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="mojUlQ0s9EVzWg2t" Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact java-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-patches-owner@gcc.gnu.org X-SW-Source: 2007-q1/txt/msg00415.txt.bz2 --mojUlQ0s9EVzWg2t Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 229 Hi all, The attached patch fixes two of the three exceptions I posted earlier today. It's committed to redhat/gcc-4_1-branch-java-merge-20070117 and to trunk (and I even remembered to commit the class this time!) Cheers, Gary --mojUlQ0s9EVzWg2t Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch Content-length: 909 Index: ChangeLog.gcj =================================================================== --- ChangeLog.gcj (revision 121739) +++ ChangeLog.gcj (working copy) @@ -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 Index: javax/management/ObjectName.java =================================================================== --- javax/management/ObjectName.java (revision 121739) +++ javax/management/ObjectName.java (working copy) @@ -674,7 +674,8 @@ */ 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); --mojUlQ0s9EVzWg2t--