[kaffe] Java lang spec: private access

Stuart Ballard stuart.a.ballard at gmail.com
Tue May 16 07:08:36 PDT 2006


Because inner classes *are* within the body of the top level class, perhaps? :)

On 5/16/06, Ito Kazumitsu <kaz at maczuka.gcd.org> wrote:
> Hi,
>
> This question is not directly related to kaffe, but ...
>
> The Java Language Specification, Third Edition says:
>
> |6.6.1 Determining Accessibility
>
> | Otherwise, if the member or constructor is declared private, then
> |        access is permitted if and only if it occurs within the body of the top
> |        level class (7.6) that encloses the declaration of the member or
> |        constructor.
> |
>
> Why "the top level class" ?
>
> What if the private member is declared in an inner class?
>
> _______________________________________________
> kaffe mailing list
> kaffe at kaffe.org
> http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
>


-- 
http://sab39.dev.netreach.com/




More information about the kaffe mailing list