Implied readability + layers

Alan Bateman Alan.Bateman at oracle.com
Thu Nov 5 14:02:47 UTC 2015



On 05/11/2015 13:17, Ali Ebrahimi wrote:
>
> If API usage of com.baz in com.foo does not contain any type of 
> com.bar you wouldn't have any issue, otherwise com.foo must live on 
> layer1.

Are there com.bar types in com.baz's API? If not then users of com.baz 
need to vigorously lobby the maintainer of com.baz to stop using 
requires public. If com.baz agrees then com.foo will not read com.bar at 1 
and this frees up com.foo to use another version of com.bar in layer2.

On the other hand, if there are com.bar types in com.baz's API then 
com.foo will be exposed to com.bar at 1 types.

-Alan.


More information about the jigsaw-dev mailing list