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

regression: Desktop.browse does not work properly for java plug-in applets

XMLWordPrintable

    • b01
    • 6u1
    • b02
    • generic
    • generic
    • Verified

        this is a regression created by a fix in 6u1 b01:

        *6464971*: Need to implement webstart/plugin part of the bug fix 6439864

        The code resets that handler for every app, instead of setting it up statically when plugin is initialized.

        2 problems:

        1. the following exception is shown when you load another applet with the current plugin instance

        java.lang.IllegalStateException: DesktopBrowse instance has already been set.
            at sun.awt.DesktopBrowse.setInstance(Unknown Source)
            at sun.plugin.AppletViewer.setAppletContext(Unknown Source)
            at sun.plugin.viewer.IExplorerPluginObject.<init>(Unknown Source)
            at sun.plugin.viewer.IExplorerPluginContext.createPluginObject(Unknown Source)

        2. Desktop.browse only works for the first applet loaded; subsequent applet calling Desktop.browse won't work, and will result in a NullPointerException.

              ngthomas Thomas Ng (Inactive)
              ngthomas Thomas Ng (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: