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

Mac OS: Node.startDragAndDrop(TransferMode...) throws IllegalArgumentException with more than one TransferMode element.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 7u21
    • javafx
    • Mac OS 10.8.3 with JDK 7 update 21, or update 17, probably some older too. Works fine on Windows with same JDK updates.

      With drag and drop implemented on a tree node, Node.startDragAndDrop(TransferMode...) throws an exception whenever more than one TransferMode element is specified as the parameter; TransferMode.COPY_OR_MOVE is one example.

      Top portion of stack trace:
      Glass detected outstanding Java exception at -[GlassViewDelegate sendJavaDndEvent:type:]:src/com/sun/mat/ui/GlassViewDelegate.m:774
      Exception in thread "JavaFX Application Thread" java.lang.IllegalArgumentException: PrismEventUtils.convertToTransferMode: ambiguous drop action: 3
      at com.sun.javafx.tk.quantum.PrismEventUtils.convertToTransferMode(PrismEventUtils.java:193)
      at com.sun.javafx.tk.quantum.PrismEventUtils.glassDragEventToFX(PrismEventUtils.java:147)
      at com.sun.javafx.tk.quantum.PrismEventUtils.glassDragSourceEventToFX(PrismEventUtils.java:167)
      at com.sun.javafx.tk.quantum.QuantumToolkit.convertDragSourceEventToFX(QuantumToolkit.java:1141)
      at javafx.scene.Scene$DragSourceListener.dragDropEnd(Scene.java:2975)
      ...etc...

            pchelko Petr Pchelko (Inactive)
            djansenjfx Dave Jansen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: