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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 7u21
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:
    • Environment:

      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.

      Description

      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...

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: