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

AssertionError during DnD TabPane and WebPane from the Library to the content panel.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7u6
    • None
    • javafx
    • None

      Drag the TabPane or the WebPane from the Library, move the mouse into the content panel, move out and move in, you will see the exception.

      The problem is that
      1) PrefSizedTransferable.getData() will return same data, but its parent (or all other Transferable object) will create a new one everytime the getData() is called.
      2) EditModeController checks to have a new data everytime when it calls getData() (Line 578)

      I think it is better to remove that check in the EditModeController (perhaps we can check that the element of the data is not added to any element container), and make all Transferable return same data.

            sjiang Shanliang Jiang (Inactive)
            sjiang Shanliang Jiang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: