JDK-7124399 : [macosx] All Swing drag-n-drop tests failed
  • Type: Bug
  • Status: Closed
  • Resolution: Fixed
  • Component: client-libs
  • Sub-Component: javax.swing
  • Priority: P3
  • Affected Version: 7u4
  • OS: os_x
  • CPU: generic,x86
  • Submit Date: 2011-12-23
  • Updated Date: 2013-10-21
  • Resolved Date: 2012-03-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
JDK 7
7u4 b11Fixed
Related Reports
Duplicate :  
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
Removed affected version 7 because aurora matches on this bug failures.
2013-10-21

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

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