getPackage and getPackages should be reimplemented for ComponentClassLoader in order to take the shared libraries into account, but it doesn't seem to be so easy to do so.
The problem is technical and conceptual:
- The current implementation of getPackage relies on storing all the package of a classloader, including the parent's, in the class, so we may need to duplicate the whole code for it to work with our special requirements
- It's not totally clear how we should handle packages from different shared libraries...
getPackage and getPackages should be reimplemented for ComponentClassLoader in order to take the shared libraries into account, but it doesn't seem to be so easy to do so.
The problem is technical and conceptual: