How to get reads from module?
PavelTurk
pavelturk2000 at gmail.com
Mon Jan 1 15:51:24 UTC 2024
Hello all. I've asked this question, however I got no answer. So I decided to ask the question again
providing more details.
Consider the following layer graph:
1) boot
2) layerA (parent - boot) has moduleX
3) layerB (parent - boot) has moduleX
4) layerC (parents - layerA, layerB) has moduleY
As I understand it is a possible situation. ModuleY requires moduleX that is present in two parent layers.
Now, I have a reference to moduleY: var moduleY = ....; And I need to open foo package of moduleX to moduleY
dynamically:
ModuleLayer.Controller.addOpens(moduleX, foo, moduleY)//I have foo and moduleY
The question - how can I find out from which layer moduleX is used for moduleY so I could use `addOpens(..)`?
Best regards, Pavel
More information about the jigsaw-dev
mailing list