commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman" <ja...@carmanconsulting.com>
Subject RE: [lang] Adjustment to BitField
Date Tue, 05 Jul 2005 02:05:55 GMT
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:steven.caswell@gmail.com] 
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
steven.caswell@gmail.com

Take back the web - http://www.mozilla.org

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message