Does Module system in Java 9 allow circular dependency?

Zheka Kozlov orionllmain at gmail.com
Mon Sep 25 02:04:25 UTC 2017


No, the module system does not allow circular dependencies.


2017-09-25 6:45 GMT+07:00 kant kodali <kanth909 at gmail.com>:

> Another example would be. Module A depends on Module B and Module B depends
> on Module C and Module C depends on Module A.
>
>
>
> On Sun, Sep 24, 2017 at 4:43 PM, kant kodali <kanth909 at gmail.com> wrote:
>
> > Hi All,
> >
> > Does Module system in Java 9 allow circular dependency? For example, Say
> > Module A requires Module B and Module B requires Module A. Is this
> allowed?
> > If so how is this resolved?
> >
> > Thanks!
> >
>


More information about the jdk9-dev mailing list