Proposal: #ReflectiveAccessToNonExportedTypes (revised) & #AwkwardStrongEncapsulation: Weak modules & private exports
Alan.Bateman at oracle.com
Tue Sep 13 14:40:17 UTC 2016
On 13/09/2016 15:28, Andrew Dinn wrote:
> The immediate question is
> 1) Will the agent be able add an export relationship
> M exports private P to M'
> The bonus question is essentially the same as the first but in a
> slightly different circumstance. Let us instead assume that module M
> contains package P, the agent trusts module M' and M currently exports P
> to M' but does not export private P to M' (n.b. this will really only be
> of relevance where M exports P to all modules but does not export
> private P to all modules)
> 2) Will the agent be able to upgrade the export relationship from
> M exports P to M'
Yes. As per the original proposal, the agent can expand the set of
packages that are exported (or exported-private), it just can't reduce.
We have a number of patches coming that will align the implementation
with the current proposals and expect to have EA builds shortly too.
More information about the jigsaw-dev