finalize() is deprecated and it might eventually be removed from the JDK.
I think we can replace these with PhantomReferences, a ReferenceQueue and a thread that continually polls from the queue and calls our own custom finalize() replacement.
`finalize()` is deprecated and it might eventually be removed from the JDK.
I think we can replace these with `PhantomReference`s, a `ReferenceQueue` and a thread that continually polls from the queue and calls our own custom `finalize()` replacement.
finalize()
is deprecated and it might eventually be removed from the JDK.I think we can replace these with
PhantomReference
s, aReferenceQueue
and a thread that continually polls from the queue and calls our own customfinalize()
replacement.