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

Bug#225438: gcj-3.3: not implemented interface methods of abstract classes not found



Package: gcj-3.3
Version: 1:3.3-1.bunk.2
Severity: normal

the compilation of

G.java:
import q.*;
abstract class G extends F {
    public String toString() {
        return String.valueOf(bla());
    }
}

q/F.java:
package q;
import p.*;
public abstract class F implements E {
}

p/E.java:
package p;
public interface E {
    int bla();
}

fails with the error message:

G.java: In class `G':
G.java: In method `G.toString()':
G.java:4: error: No method named `bla' in scope.
        return String.valueOf(bla());
                                 ^
1 error

It works with jikes, though. As jikes is advertized to be very
standard-compliant and as common sense says, this should work (because
the class is abstract, it does not have to implement all methods, but in
non-abstract subclasses they have to exist), this may be an error of
gcj-3.3

-- System Information
Debian Release: 3.0-bunk-1
Architecture: i386
Kernel: Linux strcmp.libc 2.4.22.strcmp.5.1 #1 Wed Dec 17 00:14:24 CET 2003 i686
Locale: LANG=C, LC_CTYPE=de_DE

Versions of packages gcj-3.3 depends on:
ii  gcc-3.3                1:3.3-1.bunk.2    The GNU C compiler
ii  gcc-3.3-base           1:3.3-1.bunk.2    The GNU Compiler Collection (base 
ii  java-common            0.14              Base of all Java packages
ii  libc6                  2.3.2.ds1-10      GNU C Library: Shared libraries an
ii  libgcc1                1:3.3.2-4         GCC support library
ii  libgcj4                1:3.3-1.bunk.2    Java runtime library for use with 
ii  libgcj4-dev            1:3.3-1.bunk.2    Java development headers and stati
ii  zlib1g                 1:1.1.4-1.0woody0 compression library - runtime




Reply to: