Wouldn't that be vacuously true? You have a BitField with no bits set and you're asking if it has all of the same bits set as an integer (0) which has no bits set.
-----Original Message----- From: Steven Caswell [mailto:[EMAIL PROTECTED] Sent: Monday, July 04, 2005 5:32 PM To: Jakarta Commons Developers List Subject: [lang] Adjustment to BitField While looking at the coverage of test cases, I noticed the following in the BitField class: If I create a BitField with a mask of 0, then invoke isAllSet(0), the return value is true, instead of false as I expected. Is there any particular reason the method should behave this way, or should it indeed return false? TIA -- Steven Caswell [EMAIL PROTECTED] Take back the web - http://www.mozilla.org --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
