JavaCompiler called from JPMS module

2020-05-16 Thread Alex Sviridov
Hi all,   I am working with H2 java database that allows to create triggers from java source code. To compile the trigger the following code is used:       JavaCompiler JAVA_COMPILER = ToolProvider.getSystemJavaCompiler();     String fullClassName = packageName + "." + className;    

Re: JavaCompiler called from JPMS module

2020-05-16 Thread Alan Bateman
On 16/05/2020 17:53, Alex Sviridov wrote: : When H2 is on classpath I don't have any problems - trigger is compiled. However, when H2 is on module path (H2 has in manifest Automatic-Module-Name: com.h2database) on some of child layers (not boot layer) I get the following `output`: