On 12/04/2015 08:18 AM, Cédric Champeau wrote:
Just a related question:
Do you expect the class file format to change in JDK9 and for what
features? If it is only for supporting the module-info.class then would
something like the following be possible:
javac -source 9 -target 8 -mp modlib ...
...and produce JDK8 compatible class files + JDK9 compatible
module-info.class file(s) ?
Regards, Peter
The problem with this approach is that you are using JDK 9 to produce JDK 8
classes (so in theory, you should either use JDK 8, or use bootclasspath.
And I'm not sure what would be the implications of using bootclasspath to
compile a module file).
IIRC there is *already* within Java 9 an option to compile against
previous JDK ABIs (which are bundled with JDK 9), isn't there?
--
- DML