Please support specifying additional modules that are added with --add-modules via JavaModuleHacks and not only for extra test modules.
Of course you could also just requires them in your module descriptor, but I'd consider that even hackier than via the JavaModuleHacks, as your module does not actually require the given module.
One example is netty with a JRE runtime that was produced with javapackager.
If you use it with a full JRE all works fine, if you use it with the "custom" JRE runtime, you get a class not found exception for sun.misc.Unsafe unless you either require jdk.unsupported in your own module descriptor or use --add-modules jdk.unsupported.
Please support specifying additional modules that are added with
--add-modules
viaJavaModuleHacks
and not only for extra test modules.Of course you could also just
requires
them in your module descriptor, but I'd consider that even hackier than via theJavaModuleHacks
, as your module does not actually require the given module. One example isnetty
with a JRE runtime that was produced withjavapackager
. If you use it with a full JRE all works fine, if you use it with the "custom" JRE runtime, you get a class not found exception forsun.misc.Unsafe
unless you either requirejdk.unsupported
in your own module descriptor or use--add-modules jdk.unsupported
.