Dynamic modules and bidirectional interoperation
Thomas Watson
tjwatson at us.ibm.com
Thu Oct 6 18:22:16 UTC 2016
> From: "David M. Lloyd" <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? I was under the impression that that was not the
> case.
>
> --
> - DML
>
My assumption is no, but it also is not relevant to the scenario where the
read edges are being added to a Module representing an entity (e.g.
bundle) from another module system. In such a case I assume the other
module system (OSGi or Jboss) is in complete control over the class loader
implementation and delegation of the resolution graph for the respective
module system. For example, the OSGi bundle class loaders will not all of
a sudden start delegating to other module class loaders because of a new
edge represented in JPMS.
But I would be interested to know if dynamically adding read edges for the
built-in class loaders of JMPS Layers affect class loading/linkage
delegation at runtime.
Tom
More information about the jpms-spec-observers
mailing list