Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 44740 invoked from network); 18 Nov 2010 06:06:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Nov 2010 06:06:06 -0000 Received: (qmail 25893 invoked by uid 500); 18 Nov 2010 06:06:38 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 25676 invoked by uid 500); 18 Nov 2010 06:06:37 -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 25667 invoked by uid 99); 18 Nov 2010 06:06:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Nov 2010 06:06:37 +0000 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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Nov 2010 06:06:35 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAI66D25016494 for ; Thu, 18 Nov 2010 06:06:13 GMT Message-ID: <6679479.169381290060373578.JavaMail.jira@thor> Date: Thu, 18 Nov 2010 01:06:13 -0500 (EST) From: "Prashanth KS (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-6678) [classlib][concurrent]ArrayIndexOutofBounds exception reported in ConcurrentSkipListSet during load test MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [classlib][concurrent]ArrayIndexOutofBounds exception reported in ConcurrentSkipListSet during load test -------------------------------------------------------------------------------------------------------- Key: HARMONY-6678 URL: https://issues.apache.org/jira/browse/HARMONY-6678 Project: Harmony Issue Type: Bug Components: Classlib Affects Versions: 6.0M3 Environment: All Operating Systems Reporter: Prashanth KS Fix For: 6.0M3 Attachments: 001_HARMONY_6678.patch An ArrayIndexOutofBoundsException is thrown when the toArray(T[]) method is invoked, under load test with multiple threads. Concurrent updates to the collection results in changing Iterator sizes. As per the Javadocs, the result of the toArray(T[]) should return as much elements possible from the Collection. A toArray(T[]) method override has been implemented in ConcurrentSkipListSet and the bounds check has been included in the base class AbstractCollection to prevent this exception. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.