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

Drag and Drop for complex datatypes fails with JavaFX embedded in Swing

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Environment:

      JDK8 b132, OS X

      Description

      SwingDnD.DnDTransferable needs to take into account the representation class else this happens:

      java.lang.ClassCastException: java.nio.HeapByteBuffer cannot be cast to java.io.InputStream
      at sun.awt.datatransfer.DataTransferer.translateTransferable(DataTransferer.java:1372)
      at sun.lwawt.macosx.CDataTransferer.translateTransferable(CDataTransferer.java:131)
      at sun.awt.datatransfer.DataTransferer$6.run(DataTransferer.java:2380)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)

      ...

      See http://mail.openjdk.java.net/pipermail/openjfx-dev/2014-March/012977.html

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                anthony Anthony Petrov (Inactive)
                Reporter:
                sreimersjfx Sven Reimers (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: