This is the mail archive of the
java-prs@sources.redhat.com
mailing list for the Java project.
Re: gcj/288: Cannot refer to inner static class
- To: apbianco at cygnus dot com
- Subject: Re: gcj/288: Cannot refer to inner static class
- From: Bryce McKinlay <bryce at albatross dot co dot nz>
- Date: 20 Jul 2000 02:50:01 -0000
- Cc: java-prs at sourceware dot cygnus dot com,
- Reply-To: Bryce McKinlay <bryce at albatross dot co dot nz>
The following reply was made to PR gcj/288; it has been noted by GNATS.
From: Bryce McKinlay <bryce@albatross.co.nz>
To: osk@hem.passagen.se, java-gnats@sourceware.cygnus.com
Cc:
Subject: Re: gcj/288: Cannot refer to inner static class
Date: Thu, 20 Jul 2000 14:49:03 +1200
osk@hem.passagen.se wrote:
> $ gcj -C Test.java
> Test.java:7: Type `Outer.InnerStatic' not found in the declaration of
> the local variable `i'.
> Outer.InnerStatic[] i;
> ^
> 1 error
Yeah, this is basically the same as gcj/257.
Any type resolution that goes through resolve_type_during_patch() doesn't
seem to be working with inner classes. These are array type declarations,
casts, dot-class expressions, and instanceof expressions.
Note that in this case your example should be legal even if
Outer.InnerStatic wasn't static (but not if it is private).
regards
[ bryce ]