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

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