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

On 5/16/06, Ito Kazumitsu <[EMAIL PROTECTED]> 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@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe



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

_______________________________________________
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to