This is the mail archive of the
mailing list for the Mauve project.
Re: New BitSet test committed.
On Tue, May 10, 2005 at 08:40:17AM -0700, David Daney wrote:
> 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 <firstname.lastname@example.org>
> >>* 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:
> public BitSet get(int fromIndex,
> int toIndex)
> Returns a new BitSet composed of bits from this BitSet from fromIndex(inclusive) to
> 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.
Sorry, I misread the testcase and saw only the get(int) version to be
used, which was introduced in 1.0.
Escape the Java Trap with GNU Classpath!
Join the community at http://planet.classpath.org/