commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Ivankovits <>
Subject [OT] sub-package private (was: [proxy] Commons-Lang Dependency...)
Date Fri, 09 Sep 2005 07:50:02 GMT
> The possible Java pattern is to provide 'private' package(s), and 
> prohibit their usage, like Sun did with sun.* packages: 
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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message