ModuleDescirptor.Builder and open module

Alan Bateman Alan.Bateman at oracle.com
Sat Nov 19 17:26:47 UTC 2016



On 19/11/2016 14:52, Remi Forax wrote:
> Hi all (again),
> as far as i know, it seems there is no way to programmatically using the ModuleDescriptor.Builder API creates an open module.
> There is a package private method for that but no public visible method.
>
The builder API still needs a bit of work but this should do what you want:
   ModuleDescriptor descriptor = 
ModuleDescriptor.openModule("m1").requires("m2").exports("p").build();

-Alan


More information about the jigsaw-dev mailing list