The javafx.beans.property.adapter classes in the javafx.base module interoperate with Java Beans from the java.desktop module. As a result, the javafx.base module depends on java.desktop -- that is, the module-info.java contains "requires java.desktop".
This dependency on java.desktop is in the implementation, not the public API. We should be able to make this an optional dependency (i.e., change the module-info to "requires static java.desktop"). This will result in no loss of functionality, since the JavaBeanXxxxx classes in javafx.beans.property.adapter can't usefully do anything anyway if java.desktop is not already loaded by the application, and it will allow javafx.base to be loaded without bring in java.desktop.
This dependency on java.desktop is in the implementation, not the public API. We should be able to make this an optional dependency (i.e., change the module-info to "requires static java.desktop"). This will result in no loss of functionality, since the JavaBeanXxxxx classes in javafx.beans.property.adapter can't usefully do anything anyway if java.desktop is not already loaded by the application, and it will allow javafx.base to be loaded without bring in java.desktop.
- relates to
-
JDK-8239853 javafx.base module can be usefully split up further
-
- Open
-