public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/13273] New: [3.4 regression] gcj generates call to abstract method
@ 2003-12-02 18:46 tromey at gcc dot gnu dot org
2003-12-02 18:47 ` [Bug java/13273] " tromey at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2003-12-02 18:46 UTC (permalink / raw)
To: gcc-bugs
This is a regression from 3.3.
First, compile the attached source with jikes.
The problem isn't visible if you compile to .class with
"gcj -C", as gcj generates the wrong invokespecial call
for "super.dispose()".
(I'll also attach a .jar file containing the classes as
compiled with jikes).
Then compile FieldEditorPreferencePage.class with "gcj -c".
gcj generates a call to this method:
U IPreferencePage.dispose()
However, this is an interface method, so this call is
clearly wrong.
gcj 3.3 emits a call to:
U DialogPage.dispose()
This is still wrong, but less so -- at least it will work.
Really we should emit a call to PreferencePage.dispose().
(This is especially true for binary compatibility.)
--
Summary: [3.4 regression] gcj generates call to abstract method
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tromey at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13273
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug java/13273] [3.4 regression] gcj generates call to abstract method
2003-12-02 18:46 [Bug java/13273] New: [3.4 regression] gcj generates call to abstract method tromey at gcc dot gnu dot org
@ 2003-12-02 18:47 ` tromey at gcc dot gnu dot org
2003-12-02 18:47 ` tromey at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2003-12-02 18:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tromey at gcc dot gnu dot org 2003-12-02 18:47 -------
Created an attachment (id=5265)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5265&action=view)
jikes-compiled .class files
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13273
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug java/13273] [3.4 regression] gcj generates call to abstract method
2003-12-02 18:46 [Bug java/13273] New: [3.4 regression] gcj generates call to abstract method tromey at gcc dot gnu dot org
2003-12-02 18:47 ` [Bug java/13273] " tromey at gcc dot gnu dot org
@ 2003-12-02 18:47 ` tromey at gcc dot gnu dot org
2003-12-02 18:49 ` tromey at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2003-12-02 18:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tromey at gcc dot gnu dot org 2003-12-02 18:47 -------
Created an attachment (id=5264)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5264&action=view)
test case source file
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13273
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug java/13273] [3.4 regression] gcj generates call to abstract method
2003-12-02 18:46 [Bug java/13273] New: [3.4 regression] gcj generates call to abstract method tromey at gcc dot gnu dot org
2003-12-02 18:47 ` [Bug java/13273] " tromey at gcc dot gnu dot org
2003-12-02 18:47 ` tromey at gcc dot gnu dot org
@ 2003-12-02 18:49 ` tromey at gcc dot gnu dot org
2003-12-19 12:44 ` aph at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2003-12-02 18:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tromey at gcc dot gnu dot org 2003-12-02 18:49 -------
regression; fix for 3.4
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-12-02 18:49:29
date| |
Target Milestone|--- |3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13273
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug java/13273] [3.4 regression] gcj generates call to abstract method
2003-12-02 18:46 [Bug java/13273] New: [3.4 regression] gcj generates call to abstract method tromey at gcc dot gnu dot org
` (2 preceding siblings ...)
2003-12-02 18:49 ` tromey at gcc dot gnu dot org
@ 2003-12-19 12:44 ` aph at gcc dot gnu dot org
2004-01-16 17:11 ` cvs-commit at gcc dot gnu dot org
2004-01-16 17:25 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: aph at gcc dot gnu dot org @ 2003-12-19 12:44 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Last reconfirmed|2003-12-02 18:49:29 |2003-12-19 12:40:04
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13273
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug java/13273] [3.4 regression] gcj generates call to abstract method
2003-12-02 18:46 [Bug java/13273] New: [3.4 regression] gcj generates call to abstract method tromey at gcc dot gnu dot org
` (3 preceding siblings ...)
2003-12-19 12:44 ` aph at gcc dot gnu dot org
@ 2004-01-16 17:11 ` cvs-commit at gcc dot gnu dot org
2004-01-16 17:25 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-01-16 17:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-01-16 17:11 -------
Subject: Bug 13273
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: aph@gcc.gnu.org 2004-01-16 17:11:11
Modified files:
gcc/java : typeck.c java-tree.h jcf-parse.c decl.c
ChangeLog
Log message:
2004-01-16 Andrew Haley <aph@redhat.com>
PR java/13273:
* typeck.c (shallow_find_method): New.
(find_method_in_superclasses): New.
(find_method_in_interfaces): New.
(lookup_do): Rewrite.
* java-tree.h (SEARCH_ONLY_INTERFACE): Delete.
* jcf-parse.c (read_class): Save and restore output_class.
* decl.c (java_expand_body): Set output_class from fndecl.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/typeck.c.diff?cvsroot=gcc&r1=1.58&r2=1.59
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/java-tree.h.diff?cvsroot=gcc&r1=1.193&r2=1.194
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/jcf-parse.c.diff?cvsroot=gcc&r1=1.156&r2=1.157
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/decl.c.diff?cvsroot=gcc&r1=1.175&r2=1.176
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&r1=1.1314&r2=1.1315
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13273
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug java/13273] [3.4 regression] gcj generates call to abstract method
2003-12-02 18:46 [Bug java/13273] New: [3.4 regression] gcj generates call to abstract method tromey at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-01-16 17:11 ` cvs-commit at gcc dot gnu dot org
@ 2004-01-16 17:25 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-16 17:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-16 17:25 -------
Fixed for 3.4.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13273
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-01-16 17:25 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-02 18:46 [Bug java/13273] New: [3.4 regression] gcj generates call to abstract method tromey at gcc dot gnu dot org
2003-12-02 18:47 ` [Bug java/13273] " tromey at gcc dot gnu dot org
2003-12-02 18:47 ` tromey at gcc dot gnu dot org
2003-12-02 18:49 ` tromey at gcc dot gnu dot org
2003-12-19 12:44 ` aph at gcc dot gnu dot org
2004-01-16 17:11 ` cvs-commit at gcc dot gnu dot org
2004-01-16 17:25 ` pinskia at gcc dot gnu dot org
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).