This is the mail archive of the java-discuss@sources.redhat.com mailing list for the Java project.


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

Re: New collections - Great,


> I'll try and compile one of our big applications and see how it works.

Actually I just tried to compile the Collection calees and got an
ambiguity
java/util/AbstractSet.java:57: Can't find method
`containsAll(Ljava/util/Collection;)' in type `java.util.AbstractSet'.
Candidates are:
  `containsAll(java.util.Collection)' in `java.util.Set'
  `containsAll(java.util.Collection)' in `java.util.AbstractCollection'.
         return containsAll((Collection) o);

But it seems that can be fixed by casting at line 57:
((AbstractCollection)this)
Also the import statements
import java.io.OutputStream.GetField ;   // and PutField
don't work for me.
But this can be fixed by avoiding the explicit variable declarations

Next I get :

gcj -B/tmp/libgcjbuild/i686-pc-linux-gnu/libjava/ -C -g -classpath
/tmp/libgcjbuild/i686-pc-linux-gnu/libjava:/tmp/libgcj/libjava -d
/tmp/libgcjbuild/i686-pc-linux-gnu/libjava java/util/Collections.java
java/util/Collections.java: In class
`java.util.Collections$SynchronizedMap': java/util/Collections.java: In
method
`access$0(java.util.Collections$SynchronizedMap)':
java/util/Collections.java:0: Tree check: expected tree_list, have
pointer_type java/util/Collections.java:0: Internal compiler error in
find_as_inner_class_do, at ./parse.y:3545
   Please submit a full bug report.
   See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[1]: *** [libgcj.zip] Error 1
make[1]: Leaving directory `/tmp/libgcjbuild/i686-pc-linux-gnu/libjava'
make: *** [all-target-libjava] Error 2

I have an "old" compiler, from 20001002. I have tried upgrading, but
can't because it won't compile.

Any help ?

    Torsten


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