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

* [Bug java/20697] Invalid Can't find method error on call to super
  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 ` daney at gcc dot gnu dot org
  2005-03-30 23:55 ` daney at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: daney at gcc dot gnu dot org @ 2005-03-30 23:45 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From daney at gcc dot gnu dot org  2005-03-30 23:43 -------
Created an attachment (id=8499)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8499&action=view)
Testcase part1


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20697


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

* [Bug java/20697] Invalid Can't find method error on call to super
  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
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: daney at gcc dot gnu dot org @ 2005-03-30 23:55 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From daney at gcc dot gnu dot org  2005-03-30 23:43 -------
Created an attachment (id=8500)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8500&action=view)
Testcase part2


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20697


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

* [Bug java/20697] Invalid Can't find method error on call to super
  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
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: daney at gcc dot gnu dot org @ 2005-03-30 23:56 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From daney at gcc dot gnu dot org  2005-03-30 23:44 -------
Created an attachment (id=8501)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8501&action=view)
Testcase part3


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20697


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

* [Bug java/20697] Invalid Can't find method error on call to super
  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
                   ` (2 preceding siblings ...)
  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
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: daney at gcc dot gnu dot org @ 2005-03-30 23:58 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From daney at gcc dot gnu dot org  2005-03-30 23:45 -------
I should add that I think this is a target independent bug as it also fails for
a mipsel-linux target.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |3.4.3 4.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20697


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

* [Bug java/20697] Invalid Can't find method error on call to super
  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
                   ` (3 preceding siblings ...)
  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
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: daney at gcc dot gnu dot org @ 2005-03-31  0:19 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From daney at gcc dot gnu dot org  2005-03-30 23:55 -------
If you modify the testcase file A.java so that the inner class A1 is no longer
static, the testcase converts to an ice-on-invalid-code.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20697


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

* [Bug java/20697] Invalid Can't find method error on call to super
  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
                   ` (4 preceding siblings ...)
  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
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: daney at gcc dot gnu dot org @ 2005-03-31  0:24 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From daney at gcc dot gnu dot org  2005-03-30 23:56 -------
Created an attachment (id=8502)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8502&action=view)
First part of smaller testcase.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20697


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

* [Bug java/20697] Invalid Can't find method error on call to super
  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
                   ` (5 preceding siblings ...)
  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
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: daney at gcc dot gnu dot org @ 2005-03-31 17:05 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From daney at gcc dot gnu dot org  2005-03-30 23:58 -------
Created an attachment (id=8503)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8503&action=view)
Second part of smaller testcase.

New Testcase.  I think it is the same problem.

$ gcj A1.java B1.java
B1.java: In class `B1':
B1.java: In method `B1.n()':
B1.java:10: error: Can't find method `m()' in type `B1'. Candidates are:
  `B1.m()' in `B1'
  `A1$A2.m()' in `A1$A2'.
	   m();
	   ^
1 error


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20697


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

* [Bug java/20697] Invalid Can't find method error on call to super
  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
                   ` (6 preceding siblings ...)
  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
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-31 17:30 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |18131
              nThis|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20697


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

* [Bug java/20697] Invalid Can't find method error on call to super
  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
                   ` (7 preceding siblings ...)
  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
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-31 19:01 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-31 00:24 -------
Confirmed, I think this is a dup of bug 18119.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |18119
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-03-31 00:24:37
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20697


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

* [Bug java/20697] Invalid Can't find method error on call to super
  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
                   ` (8 preceding siblings ...)
  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
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: mckinlay at redhat dot com @ 2005-06-15 21:43 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From mckinlay at redhat dot com  2005-06-15 21:43 -------
I'm testing a fix. This is a different problem to 18131.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20697


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

* [Bug java/20697] Invalid Can't find method error on call to super
  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
                   ` (9 preceding siblings ...)
  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
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: mckinlay at redhat dot com @ 2005-06-15 21:44 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From mckinlay at redhat dot com  2005-06-15 21:44 -------
Err, 18119 I mean.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20697


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

* [Bug java/20697] Invalid Can't find method error on call to super
  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
                   ` (10 preceding siblings ...)
  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
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: mckinlay at redhat dot com @ 2005-06-15 22:07 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From mckinlay at redhat dot com  2005-06-15 22:07 -------
*** Bug 22060 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20697


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

* [Bug java/20697] Invalid Can't find method error on call to super
  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
                   ` (11 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-06-23 15:01 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-06-23 15:01 -------
Subject: Bug 20697

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	bryce@gcc.gnu.org	2005-06-23 15:01:05

Modified files:
	gcc/java       : ChangeLog parse.y 
	libjava        : ChangeLog 
Added files:
	libjava/testsuite/libjava.compile: PR20697.java 

Log message:
	PR java/20697
	* parse.y (find_most_specific_methods_list): Remove special case for
	inner classes.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&r1=1.1630&r2=1.1631
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/parse.y.diff?cvsroot=gcc&r1=1.539&r2=1.540
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/testsuite/libjava.compile/PR20697.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.3673&r2=1.3674



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20697


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

* [Bug java/20697] Invalid Can't find method error on call to super
  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
                   ` (12 preceding siblings ...)
  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
  15 siblings, 0 replies; 17+ messages in thread
From: mckinlay at redhat dot com @ 2005-06-23 15:02 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From mckinlay at redhat dot com  2005-06-23 15:02 -------
Fix checked in.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20697


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

* [Bug java/20697] Invalid Can't find method error on call to super
  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
                   ` (13 preceding siblings ...)
  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
  15 siblings, 0 replies; 17+ messages in thread
From: mckinlay at redhat dot com @ 2005-07-07 14:48 UTC (permalink / raw)
  To: java-prs



-- 
Bug 20697 depends on bug 18119, which changed state.

Bug 18119 Summary: Private inner class is visible when it shouldn't be
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18119

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20697


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

* [Bug java/20697] Invalid Can't find method error on call to super
  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
                   ` (14 preceding siblings ...)
  2005-07-07 14:48 ` mckinlay at redhat dot com
@ 2005-07-07 14:50 ` mckinlay at redhat dot com
  15 siblings, 0 replies; 17+ messages in thread
From: mckinlay at redhat dot com @ 2005-07-07 14:50 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.0


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).