Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-20763

Replace TemporaryFile#finalize by the use of phantom references system

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 14.10.6
    • Old Core
    • None
    • Unknown

    Description

      Object#finalyze() is deprecated, and it's recommended to move to java.lang.ref.Cleaner and java.lang.ref.PhantomReference.

      See https://www.baeldung.com/java-phantom-reference for some help on how to use it.

      It should probably be implemented as a generic component taking care of all XWiki phantom references.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: