Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 68365 invoked from network); 25 Jan 2006 12:23:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Jan 2006 12:23:53 -0000 Received: (qmail 56074 invoked by uid 500); 25 Jan 2006 12:23:35 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 55822 invoked by uid 500); 25 Jan 2006 12:23:33 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 55811 invoked by uid 99); 25 Jan 2006 12:23:33 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jan 2006 04:23:33 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id B035AE1 for ; Wed, 25 Jan 2006 13:23:12 +0100 (CET) Message-ID: <1760267510.1138191792719.JavaMail.jira@ajax.apache.org> Date: Wed, 25 Jan 2006 13:23:12 +0100 (CET) From: "Tim Ellison (JIRA)" To: harmony-dev@incubator.apache.org Subject: [jira] Assigned: (HARMONY-20) java.util.Collections rotate() gives incorrect result with distance parameter of min possible integer value In-Reply-To: <2019230990.1133528190763.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-20?page=all ] Tim Ellison reassigned HARMONY-20: ---------------------------------- Assign To: Tim Ellison (was: Geir Magnusson Jr) > java.util.Collections rotate() gives incorrect result with distance parameter of min possible integer value > ----------------------------------------------------------------------------------------------------------- > > Key: HARMONY-20 > URL: http://issues.apache.org/jira/browse/HARMONY-20 > Project: Harmony > Type: Bug > Components: Classlib > Environment: All > Reporter: George Harley > Assignee: Tim Ellison > Priority: Minor > > This unit test fails against the contribution. > public void testRotateListByMinInteger() { > List list = new ArrayList(); > list.add(0, "zero"); > list.add(1, "one"); > list.add(2, "two"); > list.add(3, "three"); > list.add(4, "four"); > Collections.rotate(list, Integer.MIN_VALUE); > assertEquals("Rotated incorrectly at position 0, ", "three", > (String) list.get(0)); > assertEquals("Rotated incorrectly at position 1, ", "four", > (String) list.get(1)); > assertEquals("Rotated incorrectly at position 2, ", "zero", > (String) list.get(2)); > assertEquals("Rotated incorrectly at position 3, ", "one", > (String) list.get(3)); > assertEquals("Rotated incorrectly at position 4, ", "two", > (String) list.get(4)); > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira