commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Ivankovits <ma...@ops.co.at>
Subject [OT] sub-package private (was: [proxy] Commons-Lang Dependency...)
Date Fri, 09 Sep 2005 07:50:02 GMT
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


Mime
View raw message