This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
java/1873: Can't see nested type declared in superclass of enclosing context
- To: gcc-gnats at gcc dot gnu dot org
- Subject: java/1873: Can't see nested type declared in superclass of enclosing context
- From: bryce at albatross dot co dot nz
- Date: 5 Feb 2001 02:23:19 -0000
- Reply-To: bryce at albatross dot co dot nz
>Number: 1873
>Category: java
>Synopsis: Can't see nested type declared in superclass of enclosing context
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Feb 04 18:26:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Bryce McKinlay
>Release: unknown-1.0
>Organization:
>Environment:
gcc version 2.97 20010204 (experimental)
>Description:
Compiling the code below produces the following error:
Super.java:11: Superclass `InsideCl' of class `Sub$sc$a' not found.
class a extends InsideCl implements Inside {}
^
Super.java:11: Superinterface `Inside' of class `Sub$sc$a' not found.
class a extends InsideCl implements Inside {}
^
2 errors
>How-To-Repeat:
public class Super
{
interface Inside {}
class InsideCl {}
}
class Sub extends Super
{
class sc
{
class a extends InsideCl implements Inside {}
}
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: