Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 14127 invoked from network); 9 Apr 2008 10:22:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Apr 2008 10:22:14 -0000 Received: (qmail 47240 invoked by uid 500); 9 Apr 2008 10:22:14 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 47224 invoked by uid 500); 9 Apr 2008 10:22:14 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 47214 invoked by uid 99); 9 Apr 2008 10:22:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2008 03:22:14 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2008 10:21:30 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 31C72234C0C6 for ; Wed, 9 Apr 2008 03:19:25 -0700 (PDT) Message-ID: <729125482.1207736365202.JavaMail.jira@brutus> Date: Wed, 9 Apr 2008 03:19:25 -0700 (PDT) From: "Sean Qiu (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-5705) [classlib][luni] ArrayList.addAll( Collection c) may throw unexpected ArrayIndexOutofBoundsException In-Reply-To: <2109056444.1207736245251.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-5705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sean Qiu updated HARMONY-5705: ------------------------------ Attachment: Harmony-5705.diff Could you please try this patch ? Thanks > [classlib][luni] ArrayList.addAll( Collection c) may throw unexpected ArrayIndexOutofBoundsException > ---------------------------------------------------------------------------------------------------- > > Key: HARMONY-5705 > URL: https://issues.apache.org/jira/browse/HARMONY-5705 > Project: Harmony > Issue Type: Bug > Components: Classlib > Affects Versions: 5.0M6 > Reporter: Sean Qiu > Fix For: 5.0M6 > > Attachments: Harmony-5705.diff > > > Run these test, Harmony will throw unexpected exception of java.lang.ArrayIndexOutofBoundsException: > =============== > String[] data = new String[] { "1", "2", "3", "4", "5", "6", "7", "8" }; > ArrayList list1 = new ArrayList(); > ArrayList list2 = new ArrayList(); > for (String d : data) { > list1.add(d); > list2.add(d); > list2.add(d); > } > while (list1.size() > 0) > list1.remove(0); > list1.addAll(list2); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.