Compile error for transitive dependencies

Nicolai Parlog nipa at codefx.org
Thu Dec 29 09:44:40 UTC 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

 Hi!

If module A requires B and B requires C, A can not be compiled without
C on the module path.

	error: module not found: C
	1 error

This is a little irritating but maybe it was done on purpose to ensure
fidelity across all phases. If that is so and the behavior will remain
unchanged, the error message should be improved, though.

Note that the error message does not point to a concrete location,
which makes sense because the source files under compilation are
error-free. But it also leaves the developer in the dark about which
dependency caused the problem. The message should clear that up with
something like this:

	error: module not found: C (C is required by B is required by A)
	1 error

This may be my last mail to this list this year, so I want to wish
everybody a happy new year! The module system took a huge leap from
where it was a year ago and I can only imagine how much work that must
have been. Kudos! I'm looking forward to 2017 and the release of Java
9. :)

 so long ... Nicolai



- -- 

PGP Key:
    http://keys.gnupg.net/pks/lookup?op=vindex&search=0xCA3BAD2E9CCCD509

Web:
    http://codefx.org
        a blog about software development
    https://www.sitepoint.com/java
        high-quality Java/JVM content
    http://do-foss.de
        Free and Open Source Software for the City of Dortmund

Twitter:
    https://twitter.com/nipafx
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCAAGBQJYZNsHAAoJEMo7rS6czNUJxk8P/A4XHKFGFJG7Vyl2vaA2wBN0
XoQ35FBM0xJyt6qGITacizyOSdermOxkxTtRC7KbeO4e4qI3gi1dIwqk7kCg2dtL
VX9DlakF9N8ZK7D3kaP+gAJVo1Lgy8PPwqDBDNxz62nkaPLCY1ByNpFjcANyKuQt
HTiZvFGHIXsPqL5ohsdVo6s/g0hwqxtRW/Lw4BRznoaM/kGDf14GTOAS7hjkSflr
3M8R5JMtxZ5ZO9j6xWk0QUx87zG0BO1/BClwpWtNPcIyLbD34bvo83mynwMcSA9j
mbPDMj+UkBbF+xxmLOfQtsVvI6s61vbZwW2qppBozTXhxU1GWejbGJqVKA7l5szI
vb46e5Tr11hP2+ATx4T4U8n5R7Dy+h5kPuEWMs+SVJQ0iMkqXNs/ix+EI8RnTJMe
82Mx2ZWC1EjKmpAY+41iTe8+yse3b+3VBN5xBGe6Ysmr7tBZgxtOQjU3qIxmaYXE
JfSumM04kg/TZAbJceGWJLL5nFVEABoRmrDSPByKxlCYNL8+OtSfSy9kGYGQJiIX
iTtjfCWfoKJ9C9bqg0LOTwiv30nEVgQhE2PoOBcvFJWFfXy6wfmfvAheTD6SigcJ
nz7azGrZTlu9iNZwSx+FbcTjPaFBwBaaPNUNBNv1I5SzSYfd84wWdsCyTgFhKs2T
wgKoXMzYo3aXeG3lSoji
=HSwI
-----END PGP SIGNATURE-----


More information about the jigsaw-dev mailing list