chainsaw icon indicating copy to clipboard operation
chainsaw copied to clipboard

Support for --add-modules generally

Open Vampire opened this issue 7 years ago • 1 comments

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.

Vampire avatar Apr 06 '18 14:04 Vampire

Other examples are async.http.client which needs org.slf4j or com.fasterxml.jackson.databind and jasperreports which need java.sql.

Vampire avatar Apr 06 '18 15:04 Vampire