From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19840 invoked by alias); 3 Jul 2009 13:55:27 -0000 Received: (qmail 19737 invoked by uid 22791); 3 Jul 2009 13:55:26 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_21,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from moutng.kundenserver.de (HELO moutng.kundenserver.de) (212.227.17.8) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 03 Jul 2009 13:55:22 +0000 Received: from mail.aicas.de ([195.71.148.10]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0MKt2u-1MMjEU2xDp-000o94; Fri, 03 Jul 2009 15:55:19 +0200 Received: from mail.aicas.burg (caribic.aicas.burg [192.168.1.3]) by mail.aicas.de (Postfix) with ESMTP id B858D6AB0B5 for ; Fri, 3 Jul 2009 15:55:17 +0200 (CEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.aicas.burg (Postfix) with ESMTP id 9412456192A for ; Fri, 3 Jul 2009 15:53:52 +0200 (CEST) Received: from mail.aicas.burg ([127.0.0.1]) by localhost (www.aicas.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18972-04 for ; Fri, 3 Jul 2009 15:53:46 +0200 (CEST) Received: from [192.168.1.164] (unknown [192.168.1.164]) by mail.aicas.burg (Postfix) with ESMTP id 3D4CB561732 for ; Fri, 3 Jul 2009 15:53:46 +0200 (CEST) Message-ID: <4A4E0DBF.6050107@aicas.com> Date: Fri, 03 Jul 2009 13:55:00 -0000 From: Mario Torre User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Thunderbird/3.0b2 MIME-Version: 1.0 To: mauve-patches@sources.redhat.com Subject: FYI: fix ConcurrentModificationException should be thrown when altering the capacity of the array. Content-Type: multipart/mixed; boundary="------------010301020606000902090206" 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: 2009/txt/msg00013.txt.bz2 This is a multi-part message in MIME format. --------------010301020606000902090206 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: quoted-printable Content-length: 803 I'm committing this change to fix the issue in subject. Cheers, Mario 2009-07-03 Mario Torre * gnu/testlet/java/util/ArrayList/AcuniaArrayListTest: fix ConcurrentModificationException should be thrown when altering the capacity of the array. --=20 Mario Torre, Software Developer, http://www.jroller.com/neugens/ aicas Allerton Interworks Computer Automated Systems GmbH Haid-und-Neu-Stra=DFe 18 * D-76131 Karlsruhe * Germany http://www.aicas.com * Tel: +49-721-663 968-44 pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF Fingerprint: BA39 9666 94EC 8B73 27FA FC7C 4086 63E3 80F2 40CF USt-Id: DE216375633, Handelsregister HRB 109481, AG Mannheim Gesch=E4ftsf=FChrer: Dr. James J. Hunt Please, support open standards: http://endsoftpatents.org/ --------------010301020606000902090206 Content-Type: text/x-patch; name="2009-07-03-AcuniaArrayListTest.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="2009-07-03-AcuniaArrayListTest.patch" Content-length: 2585 # This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. Index: mauve/gnu/testlet/java/util/ArrayList/AcuniaArrayListTest.java --- mauve/gnu/testlet/java/util/ArrayList/AcuniaArrayListTest.java Base (1.4) +++ mauve/gnu/testlet/java/util/ArrayList/AcuniaArrayListTest.java Locally Modified (Based On 1.4) @@ -580,9 +580,21 @@ catch(ConcurrentModificationException ioobe) { th.check(true); } ArrayList al = buildAL(); it = al.iterator(); - al.get(0); al.trimToSize(); + try { + it.next(); + th.fail("should throw a ConcurrentModificationException -- 3"); + } catch(ConcurrentModificationException ioobe) { th.check(true); } + + it = al.iterator(); al.ensureCapacity(25); + try { + it.next(); + th.fail("should throw a ConcurrentModificationException -- 3"); + } catch(ConcurrentModificationException ioobe) { th.check(true); } + + it = al.iterator(); + al.get(0); al.contains(null); al.isEmpty(); al.indexOf(null); @@ -596,6 +608,7 @@ th.check(true); } catch(ConcurrentModificationException ioobe) { th.fail("should not throw a ConcurrentModificationException -- 2"); } + it = al.iterator(); al.add("b"); try { @@ -603,6 +616,7 @@ th.fail("should throw a ConcurrentModificationException -- 3"); } catch(ConcurrentModificationException ioobe) { th.check(true); } + it = al.iterator(); al.add(3,"b"); try { @@ -610,6 +624,7 @@ th.fail("should throw a ConcurrentModificationException -- 4"); } catch(ConcurrentModificationException ioobe) { th.check(true); } + it = al.iterator(); al.addAll(xal); try { @@ -617,6 +632,7 @@ th.fail("should throw a ConcurrentModificationException -- 5"); } catch(ConcurrentModificationException ioobe) { th.check(true); } + it = al.iterator(); al.addAll(2,xal); try { @@ -624,6 +640,7 @@ th.fail("should throw a ConcurrentModificationException -- 6"); } catch(ConcurrentModificationException ioobe) { th.check(true); } + it = al.iterator(); al.remove(2); try { @@ -631,6 +648,7 @@ th.fail("should throw a ConcurrentModificationException -- 8"); } catch(ConcurrentModificationException ioobe) { th.check(true); } + it = al.iterator(); al.clear(); try { --------------010301020606000902090206--