This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/20697] New: Invalid Can't find method error on call to super
- From: "daney at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Mar 2005 23:42:09 -0000
- Subject: [Bug java/20697] New: Invalid Can't find method error on call to super
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When the testcase is compiled like this:
$ gcj -o A --main=C A.java B.java C.java
C.java: In class `C':
C.java: In method `C.m()':
C.java:5: error: Can't find method `m()' in type `B'. Candidates are:
`B.m()' in `B'
`A$A1.m()' in `A$A1'.
super.m();
^
1 error
We get the error shown above. However with Sun's javac:
$ javac -g A.java B.java C.java
No errors are obtained.
I will attach the three files A.java B.java and C.java
--
Summary: Invalid Can't find method error on call to super
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: daney at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
GCC build triplet: i386-redhat-linux
GCC host triplet: i386-redhat-linux
GCC target triplet: i386-redhat-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20697