How many times one module can exist in layer graph
PavelTurk
pavelturk2000 at gmail.com
Thu Dec 14 10:56:17 UTC 2023
Hello all.
Let's suppose that we have 4 layers:
1) boot
2) layerA (parent - boot)
3) layerB (parent-boot)
4) layerC (parents - layerA, layerB)
Layers A,B,C were created using defineModulesWithOneLoader(...).
And we have two modules - moduleX and moduleY. ModuleX uses moduleY.
ModuleX is located in layerC.
Do I understand correctly that moduleY can be located in any layer, but only
in ONE layer? I mean, that it is impossible to place moduleY in any TWO layers
at the same time - for example in boot layer and layerB.
I am asking this because I read that it was possible but I tried all variants and
always got ResolutionException: Module ModuleX reads more than one module named
ModuleY.
Best regards, Pavel
More information about the jigsaw-dev
mailing list