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

Remove use of deprecated finalize methods from javafx property objects

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9, 10, openjfx11
    • Fix Version/s: openjfx15
    • Component/s: javafx
    • Labels:
    • Subcomponent:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: