This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
There are used during one Drag operation diff instances of DragSourceContext. I guess that's wrong state. There should be only one instance. The current state brakes the possibility to manage cursor setting based on previous cursor type. Seems that events coming to dragEnter, dragExit have diff DragSourceContext than the one in dragActionChanged on DragSourceListener. It also creates memory leak having more than one instance and also possible incositences of drag source states (beside cursor).
Fortunatelly it was my fault. Fixed on [winsys_dnd_2002Feb] branch. I keep the dragsource context via weak reference (to be able used them in dragEnterHack and dragExitHack methods, since the dragEnter and dragEcit methods work not correclty in MDI, will fire a bug about it). There happens sometimes between the two drag operations wasn't the drag source context instance succesfully garbaged yet, thus the weak ref pointed to the old instance. The fix just removes the weak ref after finish of the DnD.
issue doesn't apply to new window system - verified