public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/20697] New: Invalid Can't find method error on call to super
@ 2005-03-30 23:44 daney at gcc dot gnu dot org
  2005-03-30 23:45 ` [Bug java/20697] " daney at gcc dot gnu dot org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: daney at gcc dot gnu dot org @ 2005-03-30 23:44 UTC (permalink / raw)
  To: java-prs

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


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2005-07-07 14:50 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-30 23:44 [Bug java/20697] New: Invalid Can't find method error on call to super daney at gcc dot gnu dot org
2005-03-30 23:45 ` [Bug java/20697] " daney at gcc dot gnu dot org
2005-03-30 23:55 ` daney at gcc dot gnu dot org
2005-03-30 23:56 ` daney at gcc dot gnu dot org
2005-03-30 23:58 ` daney at gcc dot gnu dot org
2005-03-31  0:19 ` daney at gcc dot gnu dot org
2005-03-31  0:24 ` daney at gcc dot gnu dot org
2005-03-31 17:05 ` daney at gcc dot gnu dot org
2005-03-31 17:30 ` pinskia at gcc dot gnu dot org
2005-03-31 19:01 ` pinskia at gcc dot gnu dot org
2005-06-15 21:43 ` mckinlay at redhat dot com
2005-06-15 21:44 ` mckinlay at redhat dot com
2005-06-15 22:07 ` mckinlay at redhat dot com
2005-06-23 15:01 ` cvs-commit at gcc dot gnu dot org
2005-06-23 15:02 ` mckinlay at redhat dot com
2005-07-07 14:48 ` mckinlay at redhat dot com
2005-07-07 14:50 ` mckinlay at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).