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

Remove use of deprecated finalize methods from javafx property objects

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: