[jsr294-modularity-eg] Nested superpackage visibility

Glyn Normington glyn_normington at uk.ibm.com
Tue Jun 26 06:51:22 EDT 2007


The strawman says of nested superpackages:

> The enclosing superpackage can declare a nested superpackages as 
exported. If exported, the
> exported types of the nested superpackage are accessible outside the 
enclosing superpackage.
> If not exported, the exported types of the nested superpackage are 
accessible to other types
> in the enclosing superpackage but not outside the enclosing 
superpackage.

An observer pointed out that the last sentence above can be interpreted as 
meaning that sibling nested superpackages cannot see each other's exported 
classes. It depends on how you interpret the phrase "other types in the 
enclosing superpackage". Is that intended to be types 'directly' contained 
in the enclosing superpackage or does it also include types in nested 
superpackages (nested to any level) contained in the enclosing 
superpackage?

Glyn





Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU





-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/attachments/20070626/8b8f40d7/attachment.html 


More information about the jsr294-modularity-eg mailing list