Static layer descriptors

Ron Pressler ron at paralleluniverse.co
Fri Sep 11 17:41:45 UTC 2015


Just finished reading the new Jigsaw information. Great job!

I do have a question regarding version conflicts (as I'm sure do many
others). The document says Jigsaw leaves the version-selection problem to
the build too, which fine. But to resolve transitive dependency version
conflicts -- a --> b, c; b --> d at 1; c --> d at 2 -- the current solution is
shading/shadowing (as d at 1 and d at 2 can be completely different from one
another).

It seems like layers could provide a better solution, but as I understand,
there is no way to statically describe a multi-layer configuration (I know
I'm overloading the Jigsaw term "configuration" here) and pass it on to
java at the command line -- only dynamically with reflection. Is that
correct?

If so, could it be possible to add another command line option as an
alternative to -modulepath, that can take a file with a static description
of layer configurations?

Ron


More information about the jigsaw-dev mailing list