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

[macosx] applets with Drag and Drop fail with IllegalArgumentException

    Details

    • Subcomponent:
    • Introduced In Build:
      b86
    • Resolved In Build:
      b100
    • OS:
      os_x
    • Verification:
      Verified

      Backports

        Description

        Applets which explicitly call component.setDropTarget(new DropTarget()) fail with IllegalArgumentException.

        This is a regression of the fix for JDK-8006941.

        The proposed testcase:

        import javax.swing.*;
        import java.awt.dnd.DropTarget;

        public class NewTabApplet extends JApplet {

            public void init() {
                JButton b = new JButton("Click me");
                b.setDropTarget(new DropTarget());
                this.add(b);
            }
        }

        Expected behavior: applet starts and shows the button.
        Real behavior: applet fails with IllegalArgumentException

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  pchelko Petr Pchelko (Inactive)
                  Reporter:
                  pchelko Petr Pchelko (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: