Object.finalize has been deprecated and uses of finalize should be converted to use PhantomReferece, possibly via java.lang.ref.Cleaner.
Each java.util.Timer has an associated thread. This thread needs to be signaled to self-terminate if the owning Timer object becomes unreachable. This is currently implemented via an internal supporting object with a finalize method.
Each java.util.Timer has an associated thread. This thread needs to be signaled to self-terminate if the owning Timer object becomes unreachable. This is currently implemented via an internal supporting object with a finalize method.
- relates to
-
JDK-8253568 Replace and mitigate Object.finalize() uses in JDK libraries
- Open