Re: Whitelisting modules in layers

2017-12-02 Thread Mark Raynsford
On 2017-12-02T09:32:37 + Alan Bateman wrote: > > It looks like this demo is attempting to create a module layer from a > configuration that contains java.base. The java.base module is in the > boot layer, alternative implementations of java.base are not allowed in > other layers (java.base

Re: Whitelisting modules in layers

2017-12-02 Thread Alan Bateman
On 01/12/2017 18:47, Mark Raynsford wrote: : I've played around with the ModuleFinder API a little, and came up with the following: https://github.com/io7m/moduledemo-20171201/blob/master/src/main/java/com/io7m/moduledemo/WhitelistModuleDemo.java However, the boot_layer.defineModulesWithOn

Whitelisting modules in layers

2017-12-01 Thread Mark Raynsford
Hello. Is it possible to whitelist the modules available to a given layer? I'm in the process of implementing a small experimental language that's designed to be embedded in Java programs in a similar manner to the way that Lua is embedded in C++ programs. The language has a module system that I