JDK-8235772 : Remove use of deprecated finalize method from PiscesRenderer and AbstractSurface
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: openjfx13
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-12-11
  • Updated: 2020-02-24
  • Resolved: 2020-02-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
openjfx15Fixed
Related Reports
Blocks :  
Relates :  
Relates :  
Relates :  
Description
The implementation of PiscesRenderer and AbstractSurface uses the deprecated Object::finalize method to dispose of native resources.

We should instead use an alternative disposal mechanism, such as a weak or phantom reference-based Disposer used in other places in JavaFX. 
Comments
Changeset: 31505620 Author: Ambarish Rapte <arapte@openjdk.org> Date: 2020-02-24 06:05:00 +0000 URL: https://git.openjdk.java.net/jfx/commit/31505620
24-02-2020