This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/13512] New: not implemented interface methods of abstract classes not found
- From: "debian-gcc at lists dot debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Dec 2003 11:41:05 -0000
- Subject: [Bug java/13512] New: not implemented interface methods of abstract classes not found
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
[forwarded from http://bugs.debian.org/225438]
checked with 3.3 branch and 20031229 HEAD.
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
--
Summary: not implemented interface methods of abstract classes
not found
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian-gcc at lists dot debian dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13512