Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 90751 invoked from network); 11 Apr 2008 09:11:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Apr 2008 09:11:02 -0000 Received: (qmail 45582 invoked by uid 500); 11 Apr 2008 09:11:02 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 45482 invoked by uid 500); 11 Apr 2008 09:11:02 -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 45473 invoked by uid 99); 11 Apr 2008 09:11:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Apr 2008 02:11:02 -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; Fri, 11 Apr 2008 09:10:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DD3B1234C0C4 for ; Fri, 11 Apr 2008 02:08:08 -0700 (PDT) Message-ID: <1275228957.1207904888904.JavaMail.jira@brutus> Date: Fri, 11 Apr 2008 02:08:08 -0700 (PDT) From: "Tony Wu (JIRA)" To: commits@harmony.apache.org Subject: [jira] Resolved: (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 ] Tony Wu resolved HARMONY-5705. ------------------------------ Resolution: Fixed Hi, Sean patch applied at r647083 w/ minor modification on testcase, please verify if it fixed as you expected. > [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 > Assignee: Tony Wu > Fix For: 5.0M6 > > Attachments: Harmony-5705-V2.diff, 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.