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

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

    Details

    • Subcomponent:
    • Introduced In Build:
      b01
    • Introduced In Version:
      6u1
    • Resolved In Build:
      b02
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: