Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 47651 invoked from network); 24 Nov 2010 06:04:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Nov 2010 06:04:04 -0000 Received: (qmail 1554 invoked by uid 500); 24 Nov 2010 06:04:35 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 1476 invoked by uid 500); 24 Nov 2010 06:04:35 -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 1469 invoked by uid 99); 24 Nov 2010 06:04:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Nov 2010 06:04:34 +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; Wed, 24 Nov 2010 06:04:34 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAO64Dm8022425 for ; Wed, 24 Nov 2010 06:04:14 GMT Message-ID: <27690078.279791290578653751.JavaMail.jira@thor> Date: Wed, 24 Nov 2010 01:04:13 -0500 (EST) From: "Prashanth KS (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-6678) [classlib][concurrent]ArrayIndexOutofBounds exception reported in ConcurrentSkipListSet during load test In-Reply-To: <6679479.169381290060373578.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HARMONY-6678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Prashanth KS updated HARMONY-6678: ---------------------------------- Attachment: 002_HARMONY_6678.patch Changed the AbstractCollection class alone, as per the discussion with Regis. > [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, 002_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.