This day started with superpackages. This is a pretty interresting way to finally use the java-packages the way alot of people, me included, though it should work. The superpackage is suppose to hide your package from other "modules", and then you are suppose to make the ones u want "public" outside the superpackage. The proposal is that a file called super-package.java is created in the classpath and this is then compiled into a sort of rights controller for your package. The package is then hidden/exported according to your wishes. The example is (cant remember syntax exactly)
this includes the java.net and sun.net in the superpackage and then exports the java.net this means that any program that uses this module can only use the java.net. The sun.net is an internal packade, not possible to use for thirdparty products.
- ▼ May (9)