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

Allow multiple calls to DropTargetDropEvent.acceptDrop()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
      None
    • Resolved In Build:
      b06

      Backports

        Description

        Currently the DropTargetDropEvent.acceptDrop() method throws an exception if called multiple times while processing a single DnD event. Looking at its implementation it looks like there's no reason for this. The method only updates a few internal fields which are used when processing the dropComplete() operation. Therefore, before dropComplete() is invoked, the user code should be able to call the acceptDrop() method several times.

        There's a JavaFX bug that depends on this possibility: https://javafx-jira.kenai.com/browse/RT-34283

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                anthony Anthony Petrov (Inactive)
                Reporter:
                anthony Anthony Petrov (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: