[kaffe] Java lang spec: private access

Ito Kazumitsu kaz at maczuka.gcd.org
Tue May 16 07:02:09 PDT 2006


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?




More information about the kaffe mailing list