This is the mail archive of the
mauve-patches@sources.redhat.com
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 <ddaney@avtrex.com>
* gnu/testlet/java/util/BitSet/Get.java: New file.
David Daney.
// 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:
get
public BitSet get(int fromIndex,
int toIndex)
Returns a new BitSet composed of bits from this BitSet from
fromIndex(inclusive) to toIndex(exclusive).
Parameters:
fromIndex - index of the first bit to include.
toIndex - index after the last bit to include.
Returns:
a new BitSet from a range of this BitSet.
Throws:
IndexOutOfBoundsException - if fromIndex is negative, or
toIndex is negative, or fromIndex is larger than toIndex.
Since:
1.4
David Daney