RFR: JDK-8220702: compiling in the context of an automatic module disallows --add-modules ALL-MODULE-PATH

Jonathan Gibbons jonathan.gibbons at oracle.com
Wed Apr 10 21:51:54 UTC 2019


On 4/10/19 11:51 AM, Alex Buckley wrote:
> There is a question to be answered: When the compiler compiles code in 
> an automatic module (due to the code being observed in a directory 
> that is specified to --patch-module), then what is the _default set of 
> root modules_ for the automatic module?
>
> I expect the answer is: the same as the default set of root modules 
> for the unnamed module.


I would not expect the fact that you're compiling code in one or more 
automatic modules to have any effect on the module graph. The fact that 
the definitions of some types have been "patched in" using source code 
via --patch-module is (or should be) irrelevant.

-- Jon



More information about the compiler-dev mailing list