Minimum JDK policy for OpenJFX

John Neffenger john at status6.com
Sun May 30 22:19:52 UTC 2021


On 5/19/21 1:17 PM, Ty Young wrote:
> Biggest things for JavaFX that I can think of is jextract, a tool for 
> generating Java headers from a C header, and having all binding code 
> written in Java.

JavaFX has been doing its own manual form of Project Panama since 2014. 
Look for the string "extends C.Structure" in the following two files:

https://github.com/openjdk/jfx/blob/master/modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/MX6Cursor.java

https://github.com/openjdk/jfx/blob/master/modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/EPDSystem.java

In both cases, the technique was used to let JavaFX bypass the header 
file 'mxcfb.h' from NXP (formerly Freescale).

I'm looking forward to replacing those hard-coded offsets with the tools 
from Project Panama. In fact, I'm hopeful that Project Panama will let 
me remove all of the native C code from the Monocle EPD platform.

John


More information about the openjfx-dev mailing list