JDK-8155849 : FXUIToolkit.showMessageDialog() fails when running jre below 7u55
  • Type: Bug
  • Component: deploy
  • Sub-Component: javafx
  • Affected Version: 8u102,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-05-02
  • Updated: 2016-10-13
  • Resolved: 2016-05-03
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
Description
in JDK8 or JDK9 deploy code if you run FX app with jre below 7u55, showMessageDialog will fail as follows:
10 arg showMessageDialog fails with NoSuchMethodError
11 arg showMessageDialog fails with AbstractMethodError
13 arg showMessageDialog fails with AbstractMethodError

You can see this by installing JDK9 and 7u10 and then running:
http://oklahoma.us.oracle.com/www/tests/dialogs/jnlp/fx7.jnlp
Comments
Not a critical for PSU16_03. Ok to defer it.
30-05-2016

Crucible review: https://java.se.oracle.com/code/cru/CR-JDK9CLIENT-1932
03-05-2016

There are two problems here: 1.) the 10 and 11 arg form need to call each other, to accomidate pre-7u55 where only the 10 arg form is overridded. (later only the 11 arg form is overridden. 2.) the code in FXUIToolkit showMessageDialog will call back into NativeMixedCodeDialog.show with less args than now exist. We need to create a 12 arg version that just calls the 17 arg version that exists in JDK9.
03-05-2016