This is the mail archive of the mailing list for the Mauve project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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  <>
> >>* gnu/testlet/java/util/BitSet/ 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

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]