Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 22337 invoked from network); 15 May 2007 06:28:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 May 2007 06:28:37 -0000 Received: (qmail 53199 invoked by uid 500); 15 May 2007 06:28:44 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 53098 invoked by uid 500); 15 May 2007 06:28:44 -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 53089 invoked by uid 99); 15 May 2007 06:28:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 May 2007 23:28:44 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 May 2007 23:28:37 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C566042971E for ; Mon, 14 May 2007 23:28:16 -0700 (PDT) Message-ID: <6002754.1179210496806.JavaMail.jira@brutus> Date: Mon, 14 May 2007 23:28:16 -0700 (PDT) From: "spark shen (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-3863) [classlib][luni] AbstractSequentialList addAll(location,Collection) is incorrect. Adds collection reversed and returns false. In-Reply-To: <13781176.1179201678367.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-3863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] spark shen closed HARMONY-3863. ------------------------------- Verified at r538068. Thanks > [classlib][luni] AbstractSequentialList addAll(location,Collection) is incorrect. Adds collection reversed and returns false. > ----------------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-3863 > URL: https://issues.apache.org/jira/browse/HARMONY-3863 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: spark shen > Assigned To: Paulex Yang > Attachments: AbstractSequentialList.patch > > > The following test case will give different output on harmony and RI. According to spec, its a bug of harmony. > mport java.util.*; > public class ASLT extends AbstractSequentialList { > public static void main(String[] args) { > AbstractSequentialList al = new ASLT(); > String[] someList = { "Aardvark", "Bear", "Chimpanzee", "Duck" }; > Collection c = Arrays.asList(someList); > al.addAll(c); > System.out.println("my list contains " + al); > System.out.println("adding the collection at index 2 returns " > + al.addAll(2, c)); > System.out.println("my list now contains " + al); > } > LinkedList l = new LinkedList(); > public ListIterator listIterator(int index) { > return l.listIterator(index); > } > public int size() { > return l.size(); > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.