The baby and the bathwater
Alan Bateman
Alan.Bateman at oracle.com
Tue Mar 27 09:38:19 UTC 2018
On 27/03/2018 10:04, Remi Forax wrote:
> :
> with the limitation that you can not patch a module-info so if you have testing-only dependencies like JUnit and you want to run them in module-mode, you have to generate a jar.
>
The --add-reads option is used to augment the module to read junit or
other modules that are only required when testing. It works with
exploded modules. I can't think of any limitations or differences
between exploded and packaged modules to explain your comment.
Also Cédric's comment about putting the module-info.class into a
versioned section of a MR JAR is not something that has been recommended
here. He might be running into issues with class path scanning tools
that can't handle v53.0 class files or assume "module-info" is a valid
class name. Those same tools may still have issues with .class files in
META-INF/versions of course.
-Alan
More information about the jigsaw-dev
mailing list