Dynamic modules and bidirectional interoperation

David M. Lloyd david.lloyd at redhat.com
Thu Oct 6 18:56:01 UTC 2016


On 10/06/2016 01:36 PM, mark.reinhold at oracle.com wrote:
> 2016/10/6 10:17:46 -0700, david.lloyd at redhat.com:
>> A quick question...
>>
>> On 10/06/2016 12:07 PM, mark.reinhold at oracle.com wrote:
>>>                                              ...  Cyclic relationships
>>> amongst OSGi bundles and split packages across bundles can't be modeled
>>> directly in module descriptors, but I suspect they can be accommodated by
>>> inserting the necessary additional readability edges after the relevant
>>> layers are instantiated.
>>
>> Do read edges added at run time affect the subsequent linkage of classes
>> in the affected module?
>
> Read edges added at run time only affect run-time access-control
> checks.  They do not change the configuration previously computed
> for the relevant layer.  Subsequent configurations resolved against
> that configuration will not take the new read edge into account.

Then I do not believe that adding read edges alone will be sufficient as 
a resolution to #CyclicDependencies for either OSGi or our use cases, 
unfortunately, or at least I don't see how it could be.
-- 
- DML


More information about the jpms-spec-experts mailing list