Please stop incrementing the classfile version number when there are no format changes
Luke Hutchison
luke.hutch at gmail.com
Sat Oct 12 16:25:48 UTC 2019
On Sat, Oct 12, 2019 at 9:14 AM Luke Hutchison <luke.hutch at gmail.com> wrote:
> I am considering switching to automatic module naming to solve this for
> once and for all
>
On closer examination, this is not possible, because the manifest file
format does not support an "Add-Requires:" property. Why is there
"Automatic-Module-Name:" and "Add-Exports:" but not "Add-Requires:"?
Allowing a manifest file to include any and all information that may be
contained in a module descriptor would increase backwards compatibility for
libraries built to work on both the module path and the classpath.
(Specifically I need to require several system modules that are protected
from reflection by encapsulation in JDK 9+, as well as java.xml and
java.logging.)
More information about the jdk-dev
mailing list