Module dependencies

Florian Brunner fbrunnerlist at gmx.ch
Fri Aug 25 19:23:15 UTC 2017


Hi,

I'm still new to the Jigsaw module system, but I've found some documentation which is strange:
The Javadoc states that javafx.base depends on java.base:
http://download.java.net/java/jdk9/docs/api/javafx.base-summary.html

But when we look at the source code, we see that javafx.base depends on java.desktop:
http://hg.openjdk.java.net/openjfx/9-dev/rt/file/c734b008e3e8/modules/javafx.base/src/main/java/module-info.java

This sounds more logical as javafx.base depends on the package java.beans which is in the java.desktop module, e.g.:
http://hg.openjdk.java.net/openjfx/9-dev/rt/file/c734b008e3e8/modules/javafx.base/src/main/java/com/sun/javafx/property/adapter/ReadOnlyPropertyDescriptor.java
http://hg.openjdk.java.net/openjfx/9-dev/rt/file/c734b008e3e8/modules/javafx.base/src/main/java/com/sun/javafx/property/adapter/PropertyDescriptor.java

So I guess, the info in the Javadoc, which was generated, I think, is misleading!

That said, as far as I remember, one of the original goals of JavaFX regarding to Java SE 8 Compact Profiles/ Java SE 9 modules was to be able to generate a tailored JRE, which only includes the JavaFX stack without the AWT/ Swing stack. With the module dependency from javafx.base to java.desktop this won't be possible now, I think.
This is really bad news for  JavaFX on mobiles and embedded systems, but also for desktop applications which ship with a tailored, embedded JRE.

Are there any plans to make JavaFX available without the AWT/ Swing stack?
Will it be possible to change the module dependencies once they are published? (Depending on how transitive dependencies are handled and regarded, this could be a breaking change.)

Kind regards,
Florian



More information about the openjfx-dev mailing list