JDK-8155837 : FXUIToolkit.showSandboxSecurityDialog fails when running jre below 7u21
  • Type: Bug
  • Component: deploy
  • Sub-Component: javafx
  • Affected Version: 8u102,9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-05-02
  • Updated: 2016-10-13
  • Resolved: 2016-05-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u112Fixed 9 b120Fixed
Related Reports
Duplicate :  
Description
When running an FX app with signed sandbox jar, with JDK8 or JDK9 deploy code and using JRE less than 7u21 showSandboxSecurityDialog will get AbstractMethodException.
There is no showSandboxSecurityDuialog method in FXUIToolkit before 7u21.

Also calls from JDK9 or later JDK8 deployment code to showBlockedDialog() result in a AbstractMethodException when run with FX in JDK7 or JDK8 before 8u20.
This method in com.sun.deploy.uitoolkit.ui.UIFactory should be made non-abstract, and some default implementation should be used.

Finally several String resources used by old FXUIToolkit were removed - restoring them.

All problems can be seen, and fix verified, when installed JDK9 and 7u10 and running:
http://oklahoma.us.oracle.com/www/tests/dialogs/jnlp/fx7.jnlp
Comments
Crucible review: https://java.se.oracle.com/code/cru/CR-JDK9CLIENT-1936
04-05-2016

just need to call showSecurityDialog when showSandboxSecurityDialog is not overridden, and call showExceptionDialog when showBlockedDialog is not overridded.
04-05-2016

combining this bug with JDK-8155834 - this fix in UIFactory will address both showSandboxDialog and showBlockedDialog.
04-05-2016