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

Remove use of deprecated finalize methods from javafx property objects

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • jfx15
    • jfx11, 9, 10
    • javafx

      The implementation of the asObject and xxxxxProperty methods in the following classes uses the deprecated Object::finalize method to clean up the property bindings that are created, to avoid a memory leak:

      javafx.beans.property.BooleanProperty
      javafx.beans.property.DoubleProperty
      javafx.beans.property.FloatProperty
      javafx.beans.property.IntegerProperty
      javafx.beans.property.LongProperty

      We should instead use an alternative disposal mechanism, such as a weak or phantom reference-based Disposer used in other places in JavaFX.

            kcr Kevin Rushforth
            kcr Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: