This is the mail archive of the
mailing list for the Mauve project.
Re: New BitSet test committed.
Michael Koch wrote:
On Mon, May 09, 2005 at 02:52:18PM -0700, David Daney wrote:
I just committed a new BitSet test.
libgcj and classpath will fail.
On deck a patch for libgcj.
2005-05-09 David Daney <email@example.com>
* gnu/testlet/java/util/BitSet/Get.java: New file.
// Tags: JDK1.4
This tag is wrong as the get method you test was introduced in JDK 1.0 according
to SUNs javadocs.
I disagree. From the Sun's javadocs for 1.4.2:
public BitSet get(int fromIndex,
Returns a new BitSet composed of bits from this BitSet from
fromIndex(inclusive) to toIndex(exclusive).
fromIndex - index of the first bit to include.
toIndex - index after the last bit to include.
a new BitSet from a range of this BitSet.
IndexOutOfBoundsException - if fromIndex is negative, or
toIndex is negative, or fromIndex is larger than toIndex.