public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/13252] New: gcj 3.4 bug handling qualified "super"
@ 2003-12-01  2:27 ovid at mailandnews dot com
  2003-12-01  3:14 ` [Bug java/13252] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ovid at mailandnews dot com @ 2003-12-01  2:27 UTC (permalink / raw)
  To: gcc-bugs

public class One {
   public Object A() {
      return new Object();
   }
}
public class Two extends One {
     public void B () {
          Object obj = Two.super.A();
     }
     public static void main(String[] args)
     {}
}

gcj -c *.java

Two.java:5: error: 'class' or 'this' expected.
                Object obj = Two.super.A ()


javac *.java works fine.

If I make "A" return void:

---
One: public A() {}
Two: public void B {} { Two.super.A(); }
---
I get:

gcj -c *.java
Two.java:5: error: '(' expected.
                Two.super.A ();

The original code I am trying to compile from .java is from jface
(eclipse):

    protected Control createContents(final Composite parent) {
        final Control[] control = new Control[1];
        BusyIndicator.showWhile(getShell().getDisplay(), new Runnable() {
            public void run() {
                control[0] = PreferenceDialog.super.createContents(parent);
                // Add the first page
                selectSavedItem();
            }
        });
        return control[0];
    }

This returns a:
org\eclipse\jface\preference\PreferenceDialog.java:294: error: 'class' 
or 'this' expected.
                                control[0] = 
PreferenceDialog.super.createContents(parent);

gcc version 3.4 20031123 (experimental)   (thisiscool win32 build)

-- 
           Summary: gcj 3.4 bug handling qualified "super"
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ovid at mailandnews dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2004-08-12 21:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-01  2:27 [Bug java/13252] New: gcj 3.4 bug handling qualified "super" ovid at mailandnews dot com
2003-12-01  3:14 ` [Bug java/13252] " pinskia at gcc dot gnu dot org
2004-01-14  4:32 ` [Bug java/13252] gcj " giovannibajo at libero dot it
2004-01-14  4:40 ` pinskia at gcc dot gnu dot org
2004-01-20 15:45 ` pbrook at gcc dot gnu dot org
2004-04-04 23:28 ` cvs-commit at gcc dot gnu dot org
2004-08-12 21:01 ` sopwith 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).