This is the mail archive of the java-prs@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcj/288: Cannot refer to inner static class


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 ]
 
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]