Details
-
Bug
-
Resolution: Fixed
-
P2
-
8
-
b86
-
b100
-
os_x
-
Verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8022430 | 7u60 | Unassigned | P2 | Resolved | Fixed | b01 |
JDK-8022382 | 7u51 | Unassigned | P2 | Resolved | Fixed | b01 |
JDK-8022022 | 7u45 | Unassigned | P2 | Closed | Fixed | b05 |
JDK-8021238 | 7u40 | Petr Pchelko | P2 | Closed | Fixed | b36 |
Description
Applets which explicitly call component.setDropTarget(new DropTarget()) fail with IllegalArgumentException.
This is a regression of the fix forJDK-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
This is a regression of the fix for
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
- backported by
-
JDK-8022382 [macosx] applets with Drag and Drop fail with IllegalArgumentException
- Resolved
-
JDK-8022430 [macosx] applets with Drag and Drop fail with IllegalArgumentException
- Resolved
-
JDK-8021238 [macosx] applets with Drag and Drop fail with IllegalArgumentException
- Closed
-
JDK-8022022 [macosx] applets with Drag and Drop fail with IllegalArgumentException
- Closed
- relates to
-
JDK-8006941 [macosx] Deadlock in drag and drop
- Resolved