You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Mario Ivankovits <ma...@ops.co.at> on 2005/09/09 09:50:02 UTC

[OT] sub-package private (was: [proxy] Commons-Lang Dependency...)

Hi!
> The possible Java pattern is to provide 'private' package(s), and 
> prohibit their usage, like Sun did with sun.* packages: 
> http://java.sun.com/products/jdk/faq/faq-sun-packages.html
This is a contract, not less, not more. You cant ensure that these 
packages are really private, so you can use them, its just on your own risk.

What would be nice is to have a real modifier keyword, e.g:

package org.apache.any;

private package class ABC
{
}

Like private this enforces to be really private for the package, but can 
be used in sub-package too.

---
Mario


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org