JDK-8062810: Reorganize source classes in src.zip by modules
Mandy Chung
mandy.chung at oracle.com
Sat Oct 1 22:49:23 UTC 2016
The JDK source code has been reorganized by modules, as described in
JEP 201 [1]. src.zip shipped in JDK image has not been changed (see
JDK-8062810 [2]).
src.zip contains the source classes for modular JDK and it’s sensible
to organize source classes in src.zip by modules. javafx-src.zip
has similiar issue and its layout has not be changed. In addition,
there isn’t any good reason why javafx-src.zip has to stay as a
separate file as we know of.
Our proposal is to change the layout of src.zip in JDK 9 to
$MODULE/$PACKAGE/*.java
i.e. the source files are grouped by modules.
*and*
Ship one src.zip file to contain the sources for both JDK and JavaFX [3]
i.e. JDK 9 image will no longer have javafx-src.zip.
This change would impact IDEs and other tools that look at src.zip
or javafx-src.zip. We believe that this likely not require significant
change to these tools. Please share if you have any concern or feedback.
Mandy
[1] http://openjdk.java.net/jeps/201
[2] https://bugs.openjdk.java.net/browse/JDK-8062810
[3] JavaFX modules are linked in to JDK image when they are imported
during JDK build with —-with-import-modules configure option. When
JavaFX modules are not imported, src.zip will only contain the sources
for JDK modules.
More information about the build-dev
mailing list