I think EnumSet has a bug at handling an enum with lots of elements.
for(SomeEnum e : mEnumSet) {
//do whatever, or do nothing..
}
results in :
ERROR/AndroidRuntime(603): java.lang.ArrayIndexOutOfBoundsException
ERROR/AndroidRuntime(603): at java.util.HugeEnumSet
$HugeEnumSetIterator.next(HugeEnumSet.java:93)
ERROR/AndroidRuntime(603): at java.util.HugeEnumSet
$HugeEnumSetIterator.next(HugeEnumSet.java:43)
Things start to get weird at an 60 ish sizes (guess it may have to do
with something about a binary inner representation, so probably around
64) . Anyway, searched the web and found this:
http://mail-archives.apache.org/mod_mbox/harmony-commits/200709.mbox/[EMAIL
PROTECTED]
It is not directly related to Android packages so i don't know if
sending this here makes sense.
Still i wanted to inform fellow programmers about this pitfall. (Heads
off to pull an all nighter for altering his code....)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---