Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8028585

[macosx] Transferable.getTransferData(DataFlavor) fails to provide data in dragEnter/dragOver handlers.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • 9
    • 7, 8
    • client-libs
    • None

      When we are trying to query the data inside the DrtopTargetListener.dragEnter it finishes in calling a native copyDraggingDataForFormat: call. This call uses a static cache: sPasteboardTypes and sPasteboardData which should contain the types and data, cached from the pasteboard which we received in NSView with the DnD events. However, these caches are updated only from the performDragOperation call, which is only called after the drop.

      It should be decided if we need to copy the data at all. The possible fix would be cache a reference to the NSPasteboard and work with it directly inside the copyDraggingDataForFormat:

            pchelko Petr Pchelko (Inactive)
            pchelko Petr Pchelko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: