gcj/288: Cannot refer to inner static class

Bryce McKinlay bryce@albatross.co.nz
Wed Jul 19 19:50:00 GMT 2000


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 ]
 
 


More information about the Java-prs mailing list