Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-4257

Eliminate finalizers in the core codebase

XMLWordPrintable

      The Object.finalize() method was deprecated in Java 9 and use of PhantomReference instead is recommended for cases where simply relying on code to invoke a close() method is insufficient. So, let's get rid of the 3 finalizers in the WF Core codebase.

      Use the PhantomReference utility stuff in wildfly-common. That lib is already a dependency of the code that has the various finalize() impls.

              bstansbe@redhat.com Brian Stansberry
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: