Possible memory leak due to use of static WeakHashMap in the TableCellBehavior

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: 7u15
    • Component/s: javafx
    • None
    • Environment:

      Windows 7 x64

      Hello,

      I think that the following problem is a bug, if this is not the case, my apologizes.

      The class 'com.sun.javafx.scene.control.behavior.TableCellBehavior' contains a static WeakHashMap with the following entry definition:

      Key: TableView
      Value: TablePosition

      The problem comes from the fact that the TablePosition contains also strong references to the TableView and TableColumn.

      Thus the GC can never do its work because it exists always at least a strong reference to the TableView, even if the TableView is not used somewhere else.

      Best regards, Gilles Remy

            Assignee:
            Jonathan Giles
            Reporter:
            J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: