-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
5.0
-
Fix Understood
-
generic
-
generic
This bug occurs in XToolkit on Solaris and Linux in tiger-beta2. While a drag and drop is in progress, popup a modal dialog. If the mouse pointer is at the drop target when the modal dialog pops up, the drag and drop is not getting cancelled and the successive drag and drop attempts will throw the following exception:
java.awt.dnd.InvalidDnDOperationException: Drag and drop in progress
at sun.awt.dnd.SunDragSourceContextPeer.setDragDropInProgress(SunDragSourceContextPeer.java:298)
at java.awt.dnd.DragSource.startDrag(DragSource.java:286)
at java.awt.dnd.DragSource.startDrag(DragSource.java:403)
at java.awt.dnd.DragGestureEvent.startDrag(DragGestureEvent.java:221)
at TestDragList$AWTDnDAdapter.dragGestureRecognized(TestDragList.java:99)
at java.awt.dnd.DragGestureRecognizer.fireDragGestureRecognized(DragGestureRecognizer.java:339)
at sun.awt.X11.XMouseDragGestureRecognizer.mouseDragged(XMouseDragGestureRecognizer.java:202)
at java.awt.Component.processMouseMotionEvent(Component.java:5511)
at java.awt.Component.processEvent(Component.java:5232)
at java.awt.List.processEvent(List.java:1035)
at java.awt.Component.dispatchEventImpl(Component.java:3931)
at java.awt.Component.dispatchEvent(Component.java:3779)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
The bug can be reproduced as follows:
1. Run the attached code on XToolkit.
2. Click on the ClickMe button.
3. Drag from the first List and move the mouse to second List. Don't release the mouse button
4. A modal dialog pops up. Now release the mouse and close the modal dialog by clicking the Close butoon.
5. Try drag and drop between Lists and it can be seen that the exception results.
java.awt.dnd.InvalidDnDOperationException: Drag and drop in progress
at sun.awt.dnd.SunDragSourceContextPeer.setDragDropInProgress(SunDragSourceContextPeer.java:298)
at java.awt.dnd.DragSource.startDrag(DragSource.java:286)
at java.awt.dnd.DragSource.startDrag(DragSource.java:403)
at java.awt.dnd.DragGestureEvent.startDrag(DragGestureEvent.java:221)
at TestDragList$AWTDnDAdapter.dragGestureRecognized(TestDragList.java:99)
at java.awt.dnd.DragGestureRecognizer.fireDragGestureRecognized(DragGestureRecognizer.java:339)
at sun.awt.X11.XMouseDragGestureRecognizer.mouseDragged(XMouseDragGestureRecognizer.java:202)
at java.awt.Component.processMouseMotionEvent(Component.java:5511)
at java.awt.Component.processEvent(Component.java:5232)
at java.awt.List.processEvent(List.java:1035)
at java.awt.Component.dispatchEventImpl(Component.java:3931)
at java.awt.Component.dispatchEvent(Component.java:3779)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
The bug can be reproduced as follows:
1. Run the attached code on XToolkit.
2. Click on the ClickMe button.
3. Drag from the first List and move the mouse to second List. Don't release the mouse button
4. A modal dialog pops up. Now release the mouse and close the modal dialog by clicking the Close butoon.
5. Try drag and drop between Lists and it can be seen that the exception results.
- relates to
-
JDK-4484572 Modal JOptionPane.showMessageDialog locks if called during Drag-N-Drop
-
- Closed
-
-
JDK-4645584 Invoking modal dialog while performing DnD freezes application.
-
- Closed
-