This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/13512] New: not implemented interface methods of abstract classes not found


[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


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