harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6385) EnumSet.complimentOf broken for enums of cardinality 64, 128, 192, etc.
Date Tue, 08 Dec 2009 17:57:18 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12787597#action_12787597
] 

Tim Ellison commented on HARMONY-6385:
--------------------------------------

I'm trying to recreate this bug, but don't get an error.  What is the case that is failing?

static enum HugeEnum64 {
 ... <snip>
}
        EnumSet<HugeEnum64> hugeSet64 = EnumSet.allOf(HugeEnum64.class);
        assertEquals(64, hugeSet64.size());
        EnumSet<HugeEnum64> emptySet = EnumSet.complementOf(hugeSet64);
        assertTrue(emptySet.isEmpty());

> EnumSet.complimentOf broken for enums of cardinality 64, 128, 192, etc.
> -----------------------------------------------------------------------
>
>                 Key: HARMONY-6385
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6385
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: SVN Revision: 883538
>            Reporter: Jesse Wilson
>            Assignee: Jesse Wilson
>            Priority: Minor
>         Attachments: complimentof.patch
>
>
> complimentOf() throws a runtime exception when the enum cardinality divides 64 evenly.
Fix attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message