Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8181333

Clicking "Details" button on FX ErrorPane causes Exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • 10
    • 9
    • deploy
    • 9

      in com.sun.deploy.uitoolkit.impl.fx.ui.ErrorPane, clicking on "Details" button will throw the following exception trying to show the console:

      java.lang.IllegalAccessException: class com.sun.deploy.uitoolkit.impl.fx.ui.ErrorPane$1 (in module javafx.deploy) cannot access class sun.plugin.JavaRunTime (in module jdk.plugin) because module jdk.plugin does not export sun.plugin to module javafx.deploy^M

      this is due to reflection code:
                              Class cls = Class.forName("sun.plugin.JavaRunTime");
                              Method m = cls.getDeclaredMethod(
                                      "showJavaConsole", new Class[] {boolean.class});
                              m.invoke(null, true);

            herrick Andy Herrick (Inactive)
            herrick Andy Herrick (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: