JSR 294
Like friend functions in C++
Subpackages can be more closely related to their parents than arbitrary packages
org.jdom.input, org.jdom.output, and org.jdom
JUnit tests
In the file source/org/jdom/super-package.java we might find this:
// Declare the superpackage
superpackage org.jdom {
// Members of the superpackage
member package org.jdom, org.jdom.input, org.jdom.output;
// Publish these classes
export org.jdom.Element, org.jdom.Attribute, org.jdom.input.Builder;
// Other public classes are non-published and can only be accessed
// from within the same superpackage.
}
How to export everything, or everything but a few classes?