RFR: JDK-8220702: compiling in the context of an automatic module disallows --add-modules ALL-MODULE-PATH
Christian Stein
sormuras at gmail.com
Thu Apr 11 19:00:30 UTC 2019
On Thu, Apr 11, 2019 at 8:30 PM Alex Buckley <alex.buckley at oracle.com>
wrote:
> [...] In advance
> of that, can you share some detailed invocations of javac using
> --patch-module in single-module and multi-module mode?
>
I'm not sure if this helps in any regards -- here [1] is a draft PR
that adds explicit module descriptors to all JUnit 5 modules.
This PR uses javac in multi-module mode and --patch-module
to access the already (with --release 8) compiled classes of
each module. The "src/modules/build.jsh
<https://github.com/junit-team/junit5/pull/1848/commits/f8ed9ad6c37bfcf9512f2747874d3974750b9d16#diff-374344d9b9ebdc3b396ebd6c9dc24b94>"
jshell script allows
an OS-agnostic execution of the javac command.
Hope that helps,
Christian
[1]
https://github.com/junit-team/junit5/pull/1848/commits/f8ed9ad6c37bfcf9512f2747874d3974750b9d16
More information about the jigsaw-dev
mailing list