Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8240844

Remove dependency on java.desktop from javafx.base

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • jfx15
    • javafx
    • None

      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.

            kcr Kevin Rushforth
            kcr Kevin Rushforth
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: