classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Bugs in BitSet & Compilation of latest version


From: Carlos Cavanna
Subject: RE: Bugs in BitSet & Compilation of latest version
Date: Wed, 23 Jan 2002 19:37:19 -0500

> I looked at the CVS version and it looks like they have been fixed.
> I think they were fixed on Dec 15:
>
> 2001-12-15  Bryce McKinlay  <address@hidden>
>
>       * java/util/BitSet.java (and): Fix off-by-one bug, don't
> skip part of
>       the bitset.
>       (andNot): Likewise.
>       (xor): Likewise.

Sorry. My mistake there. I "diffed" my version with the CVS version with the
idea that it would be enough verification. But I didn't notice it was
retrieving
an older file.

> Some of our classes have been substantially changed over the last year
> or so.  Partly this is due to the libgcj merge, but there are other
> reasons too.
>
> Carlos> I attach you my fix.
>
> Please send context- or uni-diffs.

Noted.

> Tom

Thanks for your help.

I compiled the latest version with jikes 1.13 and I got the following error
message:

Found 1 semantic error compiling "../java/awt/GridBagConstraints.java":

    96.     GridBagConstraints g = (GridBagConstraints) super.clone ();
                                                        <------------>
*** Error: The method "java.lang.Object clone();" can throw the checked
exception "java/lang/CloneNotSupportedException"

This happens in the clone() method, so I had to add "throws
CloneNotSupportedException".
I think that is the correct action. Well, this may help to whoever is
developing this.

I also tried compiling with gcj 3.0.2, but in my implementation of
Class.java I have a private
field called "name", and the compiler complains. This is the error:

./../vm/current/java/lang/Class.java:86: Duplicate variable declaration:
`String name' was `<unknown> name' (<built-in>:0).
       private String name;
                      ^
1 error
make[1]: *** [compile-classes] Error 1
make[1]: Leaving directory
`/scr1/cavanna/Thesis/classpath/classpath.cvs/classpath/lib'
make: *** [all-recursive] Error 1

I change my field name (that's no big deal), but maybe someone can tell me
why I get this
error.

Thanks,
CC


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]