module-info compilation on legacy JDK
Alan.Bateman at oracle.com
Fri Sep 2 20:18:24 UTC 2016
On 02/09/2016 19:32, Remi Forax wrote:
> Hi Henry,
> there are two ways to do that,
> -with javac, you first compile all your .java files but the module-info.java with --release 6 (or -source 6 -target 6 -Xbootclasspath ...) then you compile the module-info.java with --release 9.
> -with a bytecode tool like ASM, you don't need a module-info.java in that case, because you can generate it, so you compile all your classes with javac --release 6 and you generate the module-info.class with the bytecode tool.
> BTW, the right list for this kind of questions is still jigsaw-dev.
Yes, jigsaw-dev is the list for ths. A similar thread was posted there
last week discussing how to do this with Maven .
More information about the jdk9-dev