Package: gcj-4.4 Severity: normal The attached minimal Java class can be compiled with javac from openjdk-6-jdk but not with javac from gcj-4.4-jdk. This is the output of both compilers:
$ /usr/lib/jvm/java-6-openjdk/bin/javac GenericsTest.java $ /usr/lib/jvm/java-gcj/bin/javac -1.5 GenericsTest.java ---------- 1. ERROR in GenericsTest.java (at line 8) public int compareTo(GenericsTest arg0) { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The method compareTo(GenericsTest) of type GenericsTest must override a superclass method ---------- 1 problem (1 error) Regards Jan -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-3-amd64 (SMP w/2 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash -- Jan Dittberner - Debian Developer GPG-key: 4096R/558FB8DD 2009-05-10 B2FF 1D95 CE8F 7A22 DF4C F09B A73E 0055 558F B8DD http://ddportfolio.debian.net/ - http://people.debian.org/~jandd/
package jandd.gcj_generics_test; /** * Test case for Generics. */ public class GenericsTest implements Comparable<GenericsTest> { @Override public int compareTo(GenericsTest arg0) { return 0; } }
signature.asc
Description: Digital signature