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.
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.
- blocks
-
JDK-8229842 ☂ Eliminate use of deprecated finalize method in JavaFX
- Resolved
- relates to
-
JDK-8196587 Remove use of deprecated finalize method from JPEGImageLoader
- Resolved
-
JDK-8235772 Remove use of deprecated finalize method from PiscesRenderer and AbstractSurface
- Resolved
-
JDK-8240692 Cleanup of the javafx property objects
- Resolved
(1 links to)