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

Reference held by currentObservableValue in empty TableCell

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P5
    • Resolution: Unresolved
    • Affects Version/s: 8u45
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:

      Description

      When clearing the items of a TableView, the "currentObservableValue" property of the TableCell instances still hold references to the items that were in the cells previously.

      Event thought this might not be considered as a memory leak, it would be nice if the property "currentObservableValue" could be set to "null" for empty cell.

      This could be done by overriding the Cell#updateItem(T item, boolean parameter) int TableCell and set the "currentObservableValue" to null (after removing any listeners) if the empty parameter is true.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Imported: