This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/13273] New: [3.4 regression] gcj generates call to abstract method


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]