--add-opens and --add-modules in MANIFEST.MF

Reto Merz reto.merz at abacus.ch
Mon Apr 10 12:13:31 UTC 2017


There is a proposal to support --add-exports in MANIFEST.MF [1].
Are there any plans to support --add-opens and --add-modules also?
The current spec does not list such new attributes [2]. 

I have seen that webstart uses --add-modules ALL-SYSTEM [3].
Wouldn't it make sense to change the default for "java -jar" to ALL-SYSTEM also?
Otherwise there are apps which will no longer start with a simple double click [4].

One more question: Is there are way to list the default modules?
It seems that "java --list-modules" prints all modules
and "java --list-modules ALL-DEFAULT" does not work.


[1] http://openjdk.java.net/projects/jigsaw/spec/issues/#AddExportsInManifest
[2] http://download.java.net/java/jdk9/docs/technotes/guides/jar/jar.html#JAR_Manifest
[3] https://bugs.openjdk.java.net/browse/JDK-8152839
[4] http://forum.languagetool.org/t/lt-and-java-9/1588

More information about the jigsaw-dev mailing list