On 30/01/2017 16:25, Hontvári Attila wrote:
Regarding to the reduction of the java.desktop module size:
Has Swing any circular dependency with other java.desktop parts? I
know about only one, Desktop::setDefaultJMenuBar, which is only to be
introduced in Java 9. If that dependency could be broken (by replacing
the parameter type from Swing JMenuBar to AWT MenuBar), Swing could be
extracted into a new module. Therefore the java.desktop size (28 MB
including natives) would decrease by 7 MB.
And the non-default LookAndFeels (Nimbus, Windows, GTK, Synth, Multi,
Aqua, Motif) could be also moved out to their own module, they are 2,5
MB.
I suspect there is a lot more to this once you dig into the details of
the implementation. However, if you have the time and interest then
maybe you would like to prototype the split and come back with your
finding and results.
-Alan.