Patch-module with dynamic layer creating.

Alan Bateman Alan.Bateman at
Fri Oct 12 16:24:05 UTC 2018

On 12/10/2018 16:00, Alex Sviridov wrote:
> I am speaking not only about patch-module but about all possible options:
> --add-exports, --add-opens, --patch-module, --add-modules, --add-reads etc.
ModuleLayer defines static variants of the defineModuleXXX methods that 
return a Controller object that you can use to do the equivalent of 
--add-reads or --add-exports/-add-opens to export/open a package to 
specific modules. The equivalent of --add-modules is to add module name 
to the set of modules to resolve.

For patching then it does mean writing code and creating your own 
ModuleFinder but it shouldn't be too difficult.


More information about the jigsaw-dev mailing list