The split package problem

Alan Bateman Alan.Bateman at oracle.com
Sat Nov 5 07:39:28 UTC 2016


On 04/11/2016 16:50, Jochen Theodorou wrote:

> :
>
>> Attempting to do this with multiple configuration + layers isn't going
>> to help, it's just not safe, and you'll get the same exception.
>
> One layer with B-1 and C and another with B-2 and D and my application 
> "reading" from those layers... is that something that cannot be done? 
> So far I had the impression I can
The application module reads other modules rather than layers, in this 
case it results in the application module reading C, B-1, D, and B-2 
(assuming that the application modules `requires C` and `requires D` and 
both of these modules `requires transitive B`). This will fail because 
the application reads B-1 and B-2, both of which export the same 
packages to the application module.

-Alan


More information about the jigsaw-dev mailing list