A DESCRIPTION OF THE PROBLEM :
The build.gradle file in OpenJFX mentions that javafx.base is "also useful for non-GUI programming" or words to that effect. Yes, indeed it could be, but it depends on java.desktop for no other reason than Swing/JavaBean adapter objects. There are a few other classes that aren't really needed in server-side apps too like FXPermission.
It would probably be useful to extract the core observables library out into a new module, perhaps javafx.observables, that javafx.base does a "requires transitive" on. The new module wouldn't depend on java.desktop. Probably the converters could also move. I can't think of a use for the event dispatch chains at the moment on the server but it probably wouldn't hurt to have it move out either.
The build.gradle file in OpenJFX mentions that javafx.base is "also useful for non-GUI programming" or words to that effect. Yes, indeed it could be, but it depends on java.desktop for no other reason than Swing/JavaBean adapter objects. There are a few other classes that aren't really needed in server-side apps too like FXPermission.
It would probably be useful to extract the core observables library out into a new module, perhaps javafx.observables, that javafx.base does a "requires transitive" on. The new module wouldn't depend on java.desktop. Probably the converters could also move. I can't think of a use for the event dispatch chains at the moment on the server but it probably wouldn't hurt to have it move out either.
- relates to
-
JDK-8240844 Remove dependency on java.desktop from javafx.base
-
- Open
-