Testing JavaFX with Java14 preview features

Kevin Rushforth kevin.rushforth at oracle.com
Mon Apr 13 22:59:57 UTC 2020

I guess you mean modifying the FX build in your local repo so that you 
can test the use of JDK 14 preview features in FX itself? (if you were 
just trying to use it from your app you wouldn't need any build changes 
in FX). At a minimum you would need to add the "--enable-preview" flag 
to compile.options.compilerArgs, and change "sourceCompatibility" from 
"11" to "14". Not sure if anything more is needed. I've never tried it.

-- Kevin

On 4/13/2020 1:49 PM, Nir Lisker wrote:
> Hi,
> I would like to test the preview features in Java 14 on JavaFX. What
> changes should I make in the build files to get it working?
> - Nir

More information about the openjfx-dev mailing list