Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 22000 invoked from network); 4 Sep 2007 09:05:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Sep 2007 09:05:21 -0000 Received: (qmail 16610 invoked by uid 500); 4 Sep 2007 09:05:16 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 16574 invoked by uid 500); 4 Sep 2007 09:05:16 -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 16565 invoked by uid 99); 4 Sep 2007 09:05:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Sep 2007 02:05:16 -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; Tue, 04 Sep 2007 09:06:33 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7C61F714159 for ; Tue, 4 Sep 2007 02:04:58 -0700 (PDT) Message-ID: <22498332.1188896698486.JavaMail.jira@brutus> Date: Tue, 4 Sep 2007 02:04:58 -0700 (PDT) From: "spark shen (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-4728) [classlib][luni] EnumSet will not properly handle elements of ordinal bigger than 63 In-Reply-To: <27907530.1188896338110.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-4728?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] spark shen updated HARMONY-4728: -------------------------------- Summary: [classlib][luni] EnumSet will not properly handle elements of ordinal bigger than 63 (was: [classlib][luni] EnumSet will not properly handle elements of ordinal bigger than 62) > [classlib][luni] EnumSet will not properly handle elements of ordinal bigger than 63 > ------------------------------------------------------------------------------------ > > Key: HARMONY-4728 > URL: https://issues.apache.org/jira/browse/HARMONY-4728 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: spark shen > Assignee: Tony Wu > Attachments: HY-4728.diff > > > The following test case will fail on Harmony, but will pass on RI > import java.util.EnumSet; > import java.util.Iterator; > import java.util.Set; > import junit.framework.TestCase; > public class EnumSetTest extends TestCase { > static enum HugeEnum { > a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, aa, bb, cc, dd, ee, ff, gg, hh, ii, jj, kk, ll, mm, > } > public void test_iterator() { > Set hugeSet = EnumSet.allOf(HugeEnum.class); > Iterator hIterator = hugeSet.iterator(); > for( int i = 0; i < 63; i++) { > hIterator.next(); > } > assertSame(HugeEnum.ll, hIterator.next()); > } > } > On harmony, an ArrayIndexOutOfBoundsException will be thrown. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.