public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "debian-gcc at lists dot debian dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug java/13513] New: problems with static inner classes of interfaces
Date: Tue, 30 Dec 2003 12:09:00 -0000	[thread overview]
Message-ID: <20031230114401.13513.debian-gcc@lists.debian.org> (raw)

[forwarded from http://bugs.debian.org/225434]

rechecked with 3.3 branch and 20031229 CVS HEAD.

the compilation of 
 
A.java: 
interface A { 
    static class B { 
    } 
} 
 
C.java: 
interface C extends A { 
    B getB(); 
} 
 
D.java: 
class D { 
    public static void main (String[] argv) { 
        Object o = new C() { 
                public B getB() { 
                    return new B(); 
                } 
        }; 
    } 
} 
 
dies with 
 
C.java:2: error: Type `B' not found in the declaration of the return 
type of method `getB'. 
       B getB(); 
       ^ 
1 error 
./C.java:2: error: Type `B' not found in the declaration of the return 
type of method `getB'.
       B getB(); 
       ^ 
D.java:4: error: Type `B' not found in the declaration of the return 
type of method `getB'. 
                public B getB() { 
                          ^ 
2 errors 
 
 
It works with the advertized as very standard compliant jikes, so i 
assume this may be an error of gcj-3.3.

-- 
           Summary: problems with static inner classes of interfaces
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian-gcc at lists dot debian dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


             reply	other threads:[~2003-12-30 11:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-30 12:09 debian-gcc at lists dot debian dot org [this message]
2003-12-30 17:33 ` [Bug java/13513] " pinskia at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031230114401.13513.debian-gcc@lists.debian.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).