From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3053 invoked by alias); 29 Feb 2008 23:37:20 -0000 Received: (qmail 3041 invoked by uid 22791); 29 Feb 2008 23:37:19 -0000 X-Spam-Check-By: sourceware.org Received: from smtp810.mail.ird.yahoo.com (HELO smtp810.mail.ird.yahoo.com) (217.146.188.70) by sourceware.org (qpsmtpd/0.31) with SMTP; Fri, 29 Feb 2008 23:36:47 +0000 Received: (qmail 41007 invoked from network); 29 Feb 2008 23:36:44 -0000 Received: from unknown (HELO orthanc.middle-earth.co.uk) (hughes2002@btinternet.com@86.139.58.88 with plain) by smtp810.mail.ird.yahoo.com with SMTP; 29 Feb 2008 23:36:44 -0000 X-YMail-OSG: 4FZYlVUVM1kWPVhIDwR6jdRnEfm1egf1lel1toLqHUDEa0aUHSFu6cVyktfqcyaayql9roeFchjYOOqLNCYBl2C1nbCCIGncvLZ4JYIfsOkGIh2I X-Yahoo-Newman-Property: ymail-3 Received: from rivendell.middle-earth.co.uk ([192.168.0.1] helo=localhost.localdomain ident=andrew) by orthanc.middle-earth.co.uk with smtp (Exim 4.63) (envelope-from ) id 1JVEXF-0006g8-V8 for mauve-patches@sources.redhat.com; Fri, 29 Feb 2008 23:21:03 +0000 Received: by localhost.localdomain (sSMTP sendmail emulation); Fri, 29 Feb 2008 23:36:42 +0000 From: "Andrew John Hughes" Date: Fri, 29 Feb 2008 23:37:00 -0000 To: mauve-patches@sources.redhat.com Subject: FYI: Add PR34840 check Message-ID: <20080229233642.GA31932@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="i9LlY+UWpKt15+FH" Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact mauve-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: mauve-patches-owner@sourceware.org X-SW-Source: 2008/txt/msg00015.txt.bz2 --i9LlY+UWpKt15+FH Content-Type: multipart/mixed; boundary="sdtB3X0nJg68CQEu" Content-Disposition: inline --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 473 This adds a test to Mauve for the bug found in PR34840. ChangeLog: 2008-02-29 Andrew John Hughes * gnu/testlet/java/lang/StringBuffer/PR34840.java: New test for bug PR classpath/34840. --=20 Andrew :) Support Free Java! Contribute to GNU Classpath and the OpenJDK http://www.gnu.org/software/classpath http://openjdk.java.net PGP Key: 94EFD9D8 (http://subkeys.pgp.net) Fingerprint =3D F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8 --sdtB3X0nJg68CQEu Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="pr34840.diff" Content-length: 1673 Index: gnu/testlet/java/lang/StringBuffer/PR34840.java =================================================================== RCS file: gnu/testlet/java/lang/StringBuffer/PR34840.java diff -N gnu/testlet/java/lang/StringBuffer/PR34840.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ gnu/testlet/java/lang/StringBuffer/PR34840.java 29 Feb 2008 23:35:06 -0000 @@ -0,0 +1,41 @@ +// Tags: JDK1.5 + +// Copyright (C) 2008 Andrew John Hughes + +// This file is part of Mauve. + +// Mauve is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2, or (at your option) +// any later version. + +// Mauve is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Mauve; see the file COPYING. If not, write to +// the Free Software Foundation, 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. */ + +package gnu.testlet.java.lang.StringBuffer; +import gnu.testlet.Testlet; +import gnu.testlet.TestHarness; + +public class PR34840 + implements Testlet +{ + + public void test(TestHarness harness) + { + StringBuffer sb = new StringBuffer(); + sb.append("He"); + sb.append((CharSequence) null,2,4); + sb.append("o, wor"); + sb.append((CharSequence) null,2,3); + sb.append("d!"); + harness.check(sb.toString(), "Hello, world!", "Appendable PR34840 check"); + } + +} --sdtB3X0nJg68CQEu-- --i9LlY+UWpKt15+FH Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline Content-length: 189 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHyJcKFCwlkZTv2dgRAsBUAJ4zlmeTqL9qnqUSqhJW7VuZ8DHL5QCghdxn DVedch+zEnSr15ZrAF2tiDA= =ctAB -----END PGP SIGNATURE----- --i9LlY+UWpKt15+FH--