Re: Inconvertible types error in EnumSet.java

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

 



Andrew John Hughes wrote:
On 17/03/2008, Trevor Harmon <trevor@xxxxxxxxxx> wrote:
Hi,

 I'm attempting to compile Classpath 0.97.1 on Mac OS X 10.5.2, which
 has Java 1.5.0_13 installed. My configure options are:

 --disable-dependency-tracking --disable-gtk-peer --disable-gconf-peer
 --disable-plugin --enable-jni

 After typing "make" I eventually get this error:

 ../java/util/EnumSet.java:252: inconvertible types
 found   : java.util.Collection<capture of ? extends T>
 required: java.util.EnumSet<T>
          EnumSet<T> other = (EnumSet<T>) c;

 Nothing I try fixes this problem. Does anyone have any advice?


 Trevor




Version 1.5 of Sun's javac is broken.  Please use an alternate
compiler, such as ecj, or a newer version of javac, such as OpenJDK
javac or the version that comes with JDK 1.6.

On Tiger (10.4.x) I used this one:

[wolfram:usr/local/bin] andreast% cat ecj
#!/bin/sh

CLASSPATH=/usr/local/share/java/ecj.jar${CLASSPATH:+:}$CLASSPATH \
/Volumes/export/gcc/classpath-install/bin/jamvm -Xms256M -Xmx512M org.eclipse.jdt.internal.compiler.batch.Main "$@"

----
You need an ecj.tar and a working jamvm.

Don't know if it helps. I was not able to test under Leopard so far.

Andreas


[Index of Archives]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux