Add-Reads and Add-Modules manifest attributes?

Reto Merz reto.merz at abacus.ch
Thu May 18 13:46:34 UTC 2017


Yes that would be great and I have also asked for that, see this thread:
http://mail.openjdk.java.net/pipermail/jigsaw-dev/2017-April/012138.html

Regards
Reto


> -----Ursprüngliche Nachricht-----
> Von: jigsaw-dev [mailto:jigsaw-dev-bounces at openjdk.java.net] Im Auftrag
> von Andrew Guibert
> Gesendet: Donnerstag, 18. Mai 2017 15:41
> An: jigsaw-dev
> Betreff: Add-Reads and Add-Modules manifest attributes?
> 
> 
> 
> I was happy to see that a resolution was reached for #AddExportsInManifest,
> but why did this stop at Add-Exports and Add-Opens?  In order to cover all
> use cases (for unnamed modules), we would need two more manifest
> attributes:
> 
> # Equivalent to: --add-reads=java.base=ALL-UNNAMED
> --add-reads=java.sql=ALL-UNNAMED
> Add-Reads: java.base, java.sql
> 
> # Equivalent to --add-modules=java.se.ee
> Add-Modules: java.se.ee
> 
> Based on my experience with JPMS so far, manifest attributes are a much
> cleaner way of specifying the JPMS workaround options.  Mainly because on
> older JDKs they are silently ignored so I don't have to add conditionally
> apply the new Java 9 args in my launch commands.
> 
> - Andy



More information about the jigsaw-dev mailing list