[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    Re: Module dependencies
From:       Kevin Rushforth <kevin.rushforth () oracle ! com>
Date:       2017-08-25 19:43:43
Message-ID: 59A07DEF.2060406 () oracle ! com
[Download RAW message or body]

The implementation of javafx.base depends on java.desktop, but nothing 
in the API of javafx.base depends on java.desktop. So javafx.base 
(currently) requires java.desktop, but not transitively. This means that 
it would be possible to remove this dependency in a future version 
without breaking compatibility.

FWIW, the javafx.graphics module is in the same state: it requires 
java.desktop, but not transitively.

-- Kevin


Florian Brunner wrote:
> 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
> 
> 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic