Short answer
The exact feature you are looking for doesn't exist.
Long Answer
They considered doing it for Java 1.7, but the case is dormant.
As far as what's actually real, there is no relationship at all between odp.proj
and odp.proj.subpackage
other than a directory structure, the protected
keyword and things like import odp.proj.*;
- except that statement doesn't get any classes from odp.proj.subpackage
One way to approach what you want is to release an API specification for what you want to expose and leave the rest undocumented or privately documented. Possibly you could even obfuscate the private classes in each release using something like ProGuard.