We still use JDK 8u40 or later as the boot jdk, meaning that we build FX 9-dev and run unit tests (and sanity tests) using JDK 8u. The fix for JDK-8139450 included a fallback case to handle running against an old (pre-9-b85) JDK. That fallback path works normally, but fails if there is a security manager installed and if jfxrt.jar is loaded with the extension class loader.
To reproduce this, run the following:
$ gradle --info -PFULL_TEST=true :systemTests:test
Here is the stack trace from one of the failures:
java.lang.ExceptionInInitializerError
at com.sun.javafx.tk.quantum.QuantumToolkit.createTKStage(QuantumToolkit.java:548)
at javafx.stage.Stage.impl_visibleChanging(Stage.java:1164)
at javafx.stage.Window$9.invalidated(Window.java:824)
at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:110)
at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:145)
at javafx.stage.Window.setShowing(Window.java:922)
at javafx.stage.Window.show(Window.java:937)
at javafx.stage.Stage.show(Stage.java:259)
at sandbox.app.FXApp.start(FXApp.java:86)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$163(LauncherImpl.java:866)
at com.sun.javafx.application.LauncherImpl$$Lambda$57/655951.run(Unknown Source)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$176(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl$$Lambda$48/8061040.run(Unknown Source)
at com.sun.javafx.application.PlatformImpl.lambda$null$174(PlatformImpl.java:295)
at com.sun.javafx.application.PlatformImpl$$Lambda$51/28341320.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$175(PlatformImpl.java:294)
at com.sun.javafx.application.PlatformImpl$$Lambda$49/29104868.run(Unknown Source)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
at com.sun.glass.ui.win.WinApplication$$Lambda$39/20133689.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.misc")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:457)
at java.security.AccessController.checkPermission(AccessController.java:884)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1564)
at java.lang.Class.checkPackageAccess(Class.java:2372)
at java.lang.Class.checkMemberAccess(Class.java:2351)
at java.lang.Class.getMethod(Class.java:1783)
at com.sun.javafx.tk.quantum.GlassStage.<clinit>(GlassStage.java:68)
... 23 more