Various resources (infoq, jigsaw-dev, osdir) indicate that having the same package in different java modules will lead to a LayerInstantiationException
, even when the packages are internal to the module (non-exported).
This seems to be the exact opposite of what the requirements say :
The Java compiler, virtual machine, and run-time system must ensure that modules that contain packages of the same name do not interfere with each other. If two distinct modules contain packages of the same name then, from the perspective of each module, all of the types and members in that package are defined only by that module.
So are (will) two modules used by an app be able to contain private packages of the same name ?
EDIT
This is an issue of JMPS as pointed by Stanislav Lukyanov