public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/13513] New: problems with static inner classes of interfaces
@ 2003-12-30 12:09 debian-gcc at lists dot debian dot org
  2003-12-30 17:33 ` [Bug java/13513] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2003-12-30 12:09 UTC (permalink / raw)
  To: gcc-bugs

[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


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

* [Bug java/13513] problems with static inner classes of interfaces
  2003-12-30 12:09 [Bug java/13513] New: problems with static inner classes of interfaces debian-gcc at lists dot debian dot org
@ 2003-12-30 17:33 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-30 17:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-30 17:21 -------
This is a dup of bug 2499.

*** This bug has been marked as a duplicate of 2499 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2003-12-30 17:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-30 12:09 [Bug java/13513] New: problems with static inner classes of interfaces debian-gcc at lists dot debian dot org
2003-12-30 17:33 ` [Bug java/13513] " 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).