This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/13273] New: [3.4 regression] gcj generates call to abstract method
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Dec 2003 18:46:05 -0000
- Subject: [Bug java/13273] New: [3.4 regression] gcj generates call to abstract method
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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