Module dependencies not transitive?

Module A depends on Module B depends on Module C.

Give this arrangement in a project, if some class in A references a class in C, why doesn't it resolve through to the class in C when you Ctrl+click on C from A? In other words, shouldn't module-to-module-to-module dependencies be transitive?

Thanks,
Jon

4 comments

Maybe "Export" is the workaround or answer?

0

Maybe "Export" is the workaround?

0

I think you'll find it's the answer. :)

N.

Jon Steelman wrote:

Maybe "Export" is the workaround or answer?

0

Yes, the answer. Thanks Nathan. :) Still seems strange to me that this is done for module-to-module dependencies but I suppose for IDEA to handle Export consistently no matter the type of dependency forces this approach.

0

Please sign in to leave a comment.