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

Eliminate finalizers in the core codebase

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: