RFE simplify usage of patched module [by Robert Scholte, from jdk-dev]
Christian Stein
sormuras at gmail.com
Mon Feb 17 08:52:15 UTC 2020
I extended the example project with some potential use-cases
for the `--patch-module-descriptor` option at [0]. Those use-cases
show which command line option usages can be replaced and
therefore simplified (as this RFE thread was coined) in the form
of the following example:
Today:
--add-modules java.sql
--add-reads org.astro=java.sql
With `--patch-module-descriptor src/org.astro/test/module-info.java`:
module org.astro { // name specifies the "primary" module to be patched
requires java.sql; // adds and reads the specified module
}
Cheers,
Christian
[0]: https://github.com/sormuras/java-module-patching#examples
>
More information about the jigsaw-dev
mailing list