United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7124399 [macosx] All Swing drag-n-drop tests failed
JDK-7124399 : [macosx] All Swing drag-n-drop tests failed

Details
Type:
Bug
Submit Date:
2011-12-23
Status:
Closed
Updated Date:
2013-10-21
Project Name:
JDK
Resolved Date:
2012-03-05
Component:
client-libs
OS:
os_x
Sub-Component:
javax.swing
CPU:
x86,generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7u4
Fixed Versions:
7u4 (b11)

Related Reports
Duplicate:

Sub Tasks

Description
http://java.net/jira/browse/MACOSX_PORT-252 submitted 2011/08/09 by Igor Stolyarov
All Swing drag-n-drop tests faild.
Swing_DnD/Automated/CopyPasteDnDTest
Swing_DnD/Automated/CutPasteDnDTest
Swing_DnD/Automated/JFChooser2JEPDnDTest
Swing_DnD/Automated/JFChooser2JTADnDTest
Swing_DnD/Automated/JFChooser2JTFDnDTest
Swing_DnD/Automated/JFChooser2JTPDnDTest
Swing_DnD/Automated/JEP2JEPDnDTest
Swing_DnD/Automated/JEP2JTADnDTest
Swing_DnD/Automated/JEP2JTFDnDTest
Swing_DnD/Automated/JEP2JTPDnDTest
Swing_DnD/Automated/JTable2JEPDnDTest
Swing_DnD/Automated/JTable2JTPDnDTest
Swing_DnD/Automated/JTable2JTFDnDTest
Swing_DnD/Automated/JTable2JTADnDTest
Swing_DnD/Automated/JTA2JTFDnDTest
Swing_DnD/Automated/JTA2JTADnDTest
Swing_DnD/Automated/JTA2JTPDnDTest
Swing_DnD/Automated/JTA2JEPDnDTest
Swing_DnD/Automated/JTF2JEPDnDTest
Swing_DnD/Automated/JTF2JTPDnDTest
Swing_DnD/Automated/JTF2JTADnDTest
Swing_DnD/Automated/JTF2JTFDnDTest
Swing_DnD/Automated/JTree2JEPDnDTest
Swing_DnD/Automated/JTree2JTFDnDTest
Swing_DnD/Automated/JTree2JTADnDTest
Swing_DnD/Automated/JTree2JTPDnDTest
Swing_DnD/Automated/JList2JEPDnDTest
Swing_DnD/Automated/JList2JTPDnDTest
Swing_DnD/Automated/JList2JTADnDTest
Swing_DnD/Automated/JList2JTFDnDTest
Swing_DnD/Automated/MultiCompsDnDTest
Swing_DnD/Automated/InterJVMDnDTest
Swing_DnD/Automated/CustomTransferHandlerTest

                                    

Comments
EVALUATION

Author: Igor Stolyarov Date: 17/Aug/11 10:03 AM
Also failed several manual DnD tests:
Swing_DnD/Manual/JTableTest
Swing_DnD/Manual/JTextTest
Swing_DnD/Manual/JTreeTest
                                     
2011-12-23
EVALUATION

The reason of tis bug has 3 sources that somewhat add to each other:
1. We don't get into account the window insets when we do coordinate transformation on native level;
2. When we are artificially generating dragEntered/dragExited events we lost section that doing dragEntered part;
3. When we process drop event i wrote the condition wrong so when drop should happened (we dropped atop of drop target) we don't process it and we DO processing it when we dropping outside of the component and it causes NPE. Inverting the condition solved this exact problem.

So the idea of the fix is to correct these mistakes.
                                     
2012-01-31
Removed affected version 7 because aurora matches on this bug failures.
                                     
2013-10-21



Hardware and Software, Engineered to Work Together